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 Dec 6, 2023
1 parent 2f5b962 commit 0c0af1a
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 @@ -229,6 +229,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

1 comment on commit 0c0af1a

@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 0c0af1a.
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/7112723402
📝 Reported issues:

Please sign in to comment.