Skip to content

Commit 3d0e9fb

Browse files
t-hamanoMamadukaannezazucarolinan
authored andcommitted
Global Styles: fix console error in block preview (#59112)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: annezazu <[email protected]> Co-authored-by: carolinan <[email protected]>
1 parent 3cffea3 commit 3d0e9fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/edit-site/src/components/global-styles/block-preview-panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const BlockPreviewPanel = ( { name, variation = '' } ) => {
2828
}, [ name, blockExample, variation ] );
2929

3030
const viewportWidth = blockExample?.viewportWidth ?? null;
31-
const previewHeight = '150px';
31+
const previewHeight = 150;
3232

3333
if ( ! blockExample ) {
3434
return null;
@@ -48,7 +48,7 @@ const BlockPreviewPanel = ( { name, variation = '' } ) => {
4848
{
4949
css: `
5050
body{
51-
min-height:${ previewHeight };
51+
min-height:${ previewHeight }px;
5252
display:flex;align-items:center;justify-content:center;
5353
}
5454
`,

0 commit comments

Comments
 (0)