From ad123da4d09814a532cf6f3634d36d33614343f3 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 3 Jan 2024 20:58:52 +1100 Subject: [PATCH] Reinstates site editor iframe styles because they control not only the editor iframe, but the editor canvas container, e.g., style book --- packages/edit-site/src/components/block-editor/style.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/edit-site/src/components/block-editor/style.scss b/packages/edit-site/src/components/block-editor/style.scss index 1c9cac3aa5eb4..6294853b5c0a8 100644 --- a/packages/edit-site/src/components/block-editor/style.scss +++ b/packages/edit-site/src/components/block-editor/style.scss @@ -27,6 +27,14 @@ // Centralize the editor horizontally (flex-direction is column). align-items: center; + // Controls height of editor and editor canvas container (style book, global styles revisions previews etc.) + iframe { + display: block; + width: 100%; + height: 100%; + background: $white; + } + .edit-site-visual-editor__editor-canvas { &.is-focused { outline: calc(2 * var(--wp-admin-border-width-focus)) solid var(--wp-admin-theme-color);