Skip to content

Commit

Permalink
Only add gap styles on web
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Jan 27, 2022
1 parent e097336 commit 6c28711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ function GalleryEdit( props ) {
/>
</BlockControls>
{ noticeUI }
{ gap &&
{ Platform.isWeb &&
gap &&
styleElement &&
createPortal( <GapStyle />, styleElement ) }
<Gallery
Expand Down

0 comments on commit 6c28711

Please sign in to comment.