diff --git a/packages/block-editor/src/components/block-preview/style.scss b/packages/block-editor/src/components/block-preview/style.scss index 9bdd85f66445f8..c24de175eac9a0 100644 --- a/packages/block-editor/src/components/block-preview/style.scss +++ b/packages/block-editor/src/components/block-preview/style.scss @@ -7,6 +7,7 @@ // The preview component measures the pixel width of this item, so as to calculate the scale factor. // But without this baseline width, it collapses to 0. width: 100%; + height: 100%; overflow: hidden; diff --git a/packages/block-editor/src/components/inserter/preview-panel.js b/packages/block-editor/src/components/inserter/preview-panel.js index 554e87688bbd21..fa6c08d8c6c352 100644 --- a/packages/block-editor/src/components/inserter/preview-panel.js +++ b/packages/block-editor/src/components/inserter/preview-panel.js @@ -40,13 +40,13 @@ function InserterPreviewPanel( { item } ) { blocks={ blocks } viewportWidth={ example?.viewportWidth ?? 500 } additionalStyles={ [ - { css: 'body { padding: 16px; }' }, + { css: 'body { padding: 24px; }' }, ] } /> ) : (