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 Feb 16, 2024
1 parent 7cf8de9 commit a5c3dc6
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

1 comment on commit a5c3dc6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in a5c3dc6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7926198393
📝 Reported issues:

Please sign in to comment.