Skip to content

Commit

Permalink
Disable gallery image size options on mobile (#19828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevins authored Jan 23, 2020
1 parent 703dd33 commit 47b74aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?
Expand Down

0 comments on commit 47b74aa

Please sign in to comment.