Skip to content

Commit 47b74aa

Browse files
authored
Disable gallery image size options on mobile (#19828)
1 parent 703dd33 commit 47b74aa

File tree

1 file changed

+5
-1
lines changed
  • packages/block-library/src/gallery

1 file changed

+5
-1
lines changed

packages/block-library/src/gallery/edit.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ class GalleryEdit extends Component {
343343
return mediaPlaceholder;
344344
}
345345

346-
const imageSizeOptions = this.getImagesSizeOptions();
346+
// disable image size options on mobile for now
347+
const imageSizeOptions = Platform.select( {
348+
web: this.getImagesSizeOptions(),
349+
native: [],
350+
} );
347351
const shouldShowSizeOptions = hasImages && ! isEmpty( imageSizeOptions );
348352
// This is needed to fix a separator fence-post issue on mobile.
349353
const mobileLinkToProps = shouldShowSizeOptions ?

0 commit comments

Comments
 (0)