Skip to content

Commit

Permalink
Pattern inserter: fix Broken preview layout (#56814)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and talldan committed Dec 8, 2023
1 parent 9dee4b6 commit 2e5a478
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// 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
4 changes: 4 additions & 0 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ $block-inserter-tabs-height: 44px;
display: block;
}

.block-editor-block-preview__container {
height: 100%;
}

.block-editor-block-card {
padding-left: 0;
padding-right: 0;
Expand Down

0 comments on commit 2e5a478

Please sign in to comment.