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 <wildworks@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
  • Loading branch information
5 people authored and youknowriad committed Feb 20, 2024
1 parent 974f545 commit ea8ea99
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 ea8ea99

Please sign in to comment.