Skip to content

Commit

Permalink
Clean up block preview
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Dec 1, 2023
1 parent 9547e40 commit f0b7645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ function InserterPreviewPanel( { item } ) {
blocks={ blocks }
viewportWidth={ example?.viewportWidth ?? 500 }
additionalStyles={ [
{ css: 'body { padding: 16px; }' },
{ css: 'body { padding: 24px; }' },
] }
/>
</div>
) : (
<div className="block-editor-inserter__preview-content-missing">
{ __( 'No Preview Available.' ) }
{ __( 'No preview available.' ) }
</div>
) }
</div>
Expand Down

0 comments on commit f0b7645

Please sign in to comment.