From 010208561fdd09f7cf5368cafb3eb32a1871352a Mon Sep 17 00:00:00 2001 From: Matthew Kevins Date: Tue, 21 Jan 2020 19:10:01 +1000 Subject: [PATCH] Disable gallery image size options on mobile --- packages/block-library/src/gallery/edit.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index 6a0adcde40133c..565ca1f8fbc048 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -343,7 +343,11 @@ class GalleryEdit extends Component { return mediaPlaceholder; } - const imageSizeOptions = this.getImagesSizeOptions(); + // disable image size options on mobile for now + const imageSizeOptions = Platform.select( { + web: this.getImagesSizeOptions(), + native: [], + } ); const shouldShowSizeOptions = hasImages && ! isEmpty( imageSizeOptions ); // This is needed to fix a separator fence-post issue on mobile. const mobileLinkToProps = shouldShowSizeOptions ?