diff --git a/packages/edit-site/src/components/global-styles/block-preview-panel.js b/packages/edit-site/src/components/global-styles/block-preview-panel.js index 24bd2e666eab3e..787d8c6d47e500 100644 --- a/packages/edit-site/src/components/global-styles/block-preview-panel.js +++ b/packages/edit-site/src/components/global-styles/block-preview-panel.js @@ -28,7 +28,7 @@ const BlockPreviewPanel = ( { name, variation = '' } ) => { }, [ name, blockExample, variation ] ); const viewportWidth = blockExample?.viewportWidth ?? null; - const previewHeight = '150px'; + const previewHeight = 150; if ( ! blockExample ) { return null; @@ -48,7 +48,7 @@ const BlockPreviewPanel = ( { name, variation = '' } ) => { { css: ` body{ - min-height:${ previewHeight }; + min-height:${ previewHeight }px; display:flex;align-items:center;justify-content:center; } `,