From 5c983f4e48b3a561ae2652cb1e7aa0bbcf994ab8 Mon Sep 17 00:00:00 2001 From: Tetsuaki Hamano Date: Wed, 6 Dec 2023 16:44:09 +0900 Subject: [PATCH] Pattern inserter: fix Broken preview layout --- packages/block-editor/src/components/block-preview/style.scss | 1 - packages/block-editor/src/components/inserter/style.scss | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-preview/style.scss b/packages/block-editor/src/components/block-preview/style.scss index c24de175eac9a0..9bdd85f66445f8 100644 --- a/packages/block-editor/src/components/block-preview/style.scss +++ b/packages/block-editor/src/components/block-preview/style.scss @@ -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; diff --git a/packages/block-editor/src/components/inserter/style.scss b/packages/block-editor/src/components/inserter/style.scss index be304a4b2a031a..a9038616aa5339 100644 --- a/packages/block-editor/src/components/inserter/style.scss +++ b/packages/block-editor/src/components/inserter/style.scss @@ -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;