From a75d3ce77fe7fc65ae5647e11c4e503f484b7988 Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 11 Oct 2024 09:18:13 +0200 Subject: [PATCH 1/2] Zoom layout shift: second alternate fix. --- packages/block-editor/src/components/iframe/content.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/iframe/content.scss b/packages/block-editor/src/components/iframe/content.scss index 206f1adf32946..c6878ea1784a5 100644 --- a/packages/block-editor/src/components/iframe/content.scss +++ b/packages/block-editor/src/components/iframe/content.scss @@ -1,5 +1,6 @@ .block-editor-iframe__body { position: relative; + border-top: 0.01px solid transparent; } .block-editor-iframe__html { @@ -32,8 +33,6 @@ body { min-height: calc((#{$inner-height} - #{$total-frame-height}) / #{$scale}); - display: flex; - flex-direction: column; > .is-root-container:not(.wp-block-post-content) { flex: 1; From 4f034890a161e8929001124b8acc7cfaebb9b94d Mon Sep 17 00:00:00 2001 From: jasmussen Date: Fri, 11 Oct 2024 09:19:45 +0200 Subject: [PATCH 2/2] Use full border. --- packages/block-editor/src/components/iframe/content.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/iframe/content.scss b/packages/block-editor/src/components/iframe/content.scss index c6878ea1784a5..069274e66bdfd 100644 --- a/packages/block-editor/src/components/iframe/content.scss +++ b/packages/block-editor/src/components/iframe/content.scss @@ -1,6 +1,6 @@ .block-editor-iframe__body { position: relative; - border-top: 0.01px solid transparent; + border: 0.01px solid transparent; } .block-editor-iframe__html {