From 9bb4c8f02023141262b778ee5fb448ecf6017c8e Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 21 Jan 2022 10:45:14 +0400 Subject: [PATCH 1/2] Site Editor: Fix resizable box scrollbars in blocks --- .../edit-site/src/components/block-editor/style.scss | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/block-editor/style.scss b/packages/edit-site/src/components/block-editor/style.scss index 3baee4e66fa35..75b129b347da2 100644 --- a/packages/edit-site/src/components/block-editor/style.scss +++ b/packages/edit-site/src/components/block-editor/style.scss @@ -31,6 +31,12 @@ overflow: visible; } } + + > .components-resizable-box__container { + margin: 0 auto; + // Removing this will cancel the bottom margins in the iframe. + overflow: auto; + } } .edit-site-visual-editor__back-button { @@ -46,12 +52,6 @@ } } -.components-resizable-box__container { - margin: 0 auto; - // Removing this will cancel the bottom margins in the iframe. - overflow: auto; -} - .resizable-editor__drag-handle { $height: 100px; position: absolute; From 3872947e29b747c574989e89d4503b139d35456d Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Fri, 21 Jan 2022 11:25:17 +0400 Subject: [PATCH 2/2] No need to traget direct children --- packages/edit-site/src/components/block-editor/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/block-editor/style.scss b/packages/edit-site/src/components/block-editor/style.scss index 75b129b347da2..9830f1e302eac 100644 --- a/packages/edit-site/src/components/block-editor/style.scss +++ b/packages/edit-site/src/components/block-editor/style.scss @@ -32,7 +32,7 @@ } } - > .components-resizable-box__container { + .components-resizable-box__container { margin: 0 auto; // Removing this will cancel the bottom margins in the iframe. overflow: auto;