From e7eb576f14be00b12986887114a009d41fab0b7d Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Wed, 3 Apr 2024 18:04:39 +0300 Subject: [PATCH] Only show inserter in document tools if DFM is off (#60426) Co-authored-by: draganescu Co-authored-by: youknowriad * only show inserter in document tools if DFM is off * remove useless CSS hiding the inserter in DFM whcih is not rendered anymore --- .../src/components/header/style.scss | 1 - .../src/components/document-tools/index.js | 30 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/packages/edit-post/src/components/header/style.scss b/packages/edit-post/src/components/header/style.scss index 8bea8a7993b8da..f193ac739c0420 100644 --- a/packages/edit-post/src/components/header/style.scss +++ b/packages/edit-post/src/components/header/style.scss @@ -298,7 +298,6 @@ visibility: hidden; } - & > .edit-post-header__toolbar .editor-document-tools__inserter-toggle, & > .edit-post-header__toolbar .editor-document-tools__document-overview-toggle, & > .edit-post-header__settings > .editor-preview-dropdown, & > .edit-post-header__settings > .interface-pinned-items { diff --git a/packages/editor/src/components/document-tools/index.js b/packages/editor/src/components/document-tools/index.js index 26adcb1bb725a7..e16161a58a31ac 100644 --- a/packages/editor/src/components/document-tools/index.js +++ b/packages/editor/src/components/document-tools/index.js @@ -121,20 +121,22 @@ function DocumentTools( { variant="unstyled" >
- + { ! isDistractionFree && ( + + ) } { ( isWideViewport || ! showIconLabels ) && ( <> { isLargeViewport && ! hasFixedToolbar && (