From 6c2871183d331d69048d12164ed9e407c0607542 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Wed, 26 Jan 2022 09:06:33 +1300 Subject: [PATCH] Only add gap styles on web --- packages/block-library/src/gallery/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js index f0798c5df89d2a..13ee55cc6c786c 100644 --- a/packages/block-library/src/gallery/edit.js +++ b/packages/block-library/src/gallery/edit.js @@ -565,7 +565,8 @@ function GalleryEdit( props ) { /> { noticeUI } - { gap && + { Platform.isWeb && + gap && styleElement && createPortal( , styleElement ) }