From 7bf1d968bf305c7ba0c7be3308b3e71be06e46ca Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:57:41 +0900 Subject: [PATCH] Appender: fix initial position (#66711) Co-authored-by: t-hamano Co-authored-by: ellatrix --- .../src/components/block-tools/style.scss | 3 +-- .../components/default-block-appender/content.scss | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-tools/style.scss b/packages/block-editor/src/components/block-tools/style.scss index 66a711454eb798..b553d42668cf38 100644 --- a/packages/block-editor/src/components/block-tools/style.scss +++ b/packages/block-editor/src/components/block-tools/style.scss @@ -57,8 +57,7 @@ } } -// The black plus that shows up on the right side of an empty paragraph block, -// or the initial appender that exists only on empty documents. +// The black plus that shows up on the right side of an empty paragraph block. .block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter { position: absolute; top: 0; diff --git a/packages/block-editor/src/components/default-block-appender/content.scss b/packages/block-editor/src/components/default-block-appender/content.scss index 3a1bf9889d7481..e2009daa7358c4 100644 --- a/packages/block-editor/src/components/default-block-appender/content.scss +++ b/packages/block-editor/src/components/default-block-appender/content.scss @@ -62,6 +62,17 @@ } } +// The initial appender that exists only on empty documents. +.block-editor-default-block-appender .block-editor-inserter { + position: absolute; + top: 0; + right: 0; + line-height: 0; + + &:disabled { + display: none; + } +} /** * Fixed position appender (right bottom corner).