Skip to content

Commit 108187d

Browse files
authored
Update DIFM theme step (#106860)
1 parent 8d15dc8 commit 108187d

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

packages/design-picker/src/utils/available-designs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const getMShotOptions = ( {
2323
// end up serving WEBPs instead of JPEGs, spend fewer bits on parts of images that are not displayed, and possibly display fewer images.
2424
//
2525
// See #88786 for more info.
26-
let w = 500;
26+
let w = 1200;
2727
let screen_height = 1100;
2828
if ( oldHighResImageLoading ) {
2929
w = highRes ? 1199 : 600;

packages/onboarding/src/mshots-image/index.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,6 @@ const MShotsImageControl = ( {
265265
visible ? 'mshots-image-visible' : 'mshots-image__loader'
266266
);
267267

268-
if ( options?.oldHighResImageLoading ) {
269-
return scrollable ? (
270-
<div className={ className } style={ style } aria-labelledby={ labelledby }>
271-
<img ref={ imgRef } className="mshots-dummy-image" aria-hidden="true" alt="" />
272-
</div>
273-
) : (
274-
<img
275-
ref={ imgRef }
276-
{ ...{ className, style, src, alt, loading } }
277-
aria-labelledby={ labelledby }
278-
/>
279-
);
280-
} // else, prettier doesn't like having an else after a return
281268
return scrollable ? (
282269
<div className={ className } style={ style } aria-labelledby={ labelledby }>
283270
<img
@@ -396,6 +383,7 @@ const MShotsImage = ( {
396383
/>
397384
);
398385
}
386+
399387
return (
400388
<MShotsImageControl
401389
url={ url }

packages/onboarding/src/mshots-image/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
}
66

77
.mshots-image__container {
8+
cursor: pointer;
89
height: 100%;
910
}
1011

0 commit comments

Comments
 (0)