Skip to content

Commit

Permalink
Global Styles: fix console error in block preview (#59112)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
5 people authored and youknowriad committed Feb 20, 2024
1 parent 3cffea3 commit 3d0e9fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
`,
Expand Down

0 comments on commit 3d0e9fb

Please sign in to comment.