From 526a828f22ebcfc9ff5f90c5863ef6bb2a2f9450 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Wed, 28 Jul 2021 16:32:15 -0700 Subject: [PATCH 1/2] Remove margin setting, auto right conflict with justify buttons --- .../src/components/block-list-appender/style.scss | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/block-editor/src/components/block-list-appender/style.scss b/packages/block-editor/src/components/block-list-appender/style.scss index 5079df7cdadbe..f74de29a0dab9 100644 --- a/packages/block-editor/src/components/block-list-appender/style.scss +++ b/packages/block-editor/src/components/block-list-appender/style.scss @@ -14,11 +14,6 @@ margin: $grid-unit-10 0; } - // Add an explicit left margin of zero and auto right margin to work in horizontal - // flex containers. Without it, a "space-between"-like effect from two auto margins - // will cause the black plus to sit in the center of what space is left. - margin: 0 auto 0 0; - // Black square plus appender. .block-list-appender__toggle { padding: 0; From 6930c343542ff84da90bfa09e6dcff080f330bf3 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Mon, 2 Aug 2021 07:02:30 -0700 Subject: [PATCH 2/2] Per review, add little margin back --- .../src/components/block-list-appender/style.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-editor/src/components/block-list-appender/style.scss b/packages/block-editor/src/components/block-list-appender/style.scss index f74de29a0dab9..14c9301de6df1 100644 --- a/packages/block-editor/src/components/block-list-appender/style.scss +++ b/packages/block-editor/src/components/block-list-appender/style.scss @@ -14,6 +14,10 @@ margin: $grid-unit-10 0; } + // Add a uniform margin around the block. + // This can hopefully avoid havoc in flex containers. + margin: $grid-unit-10; + // Black square plus appender. .block-list-appender__toggle { padding: 0;