Skip to content

Commit

Permalink
center align block in global styles inline preview (#46727)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand authored Dec 23, 2022
1 parent beb80db commit 7c2f34d
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ const BlockPreviewPanel = ( { name } ) => {
{ containerResizeListener }

<BlockPreview
blocks={ blocks }
viewportWidth={ viewportWidth }
__experimentalMinHeight={ minHeight }
blocks={ blocks }
__experimentalStyles={ [
{
css: `
body{
min-height:${ minHeight }px;
display:flex;align-items:center;justify-content:center;
}
`,
},
] }
/>
</div>
</Spacer>
Expand Down

0 comments on commit 7c2f34d

Please sign in to comment.