From b20ac3764a2774be8a34d9160950b283478ce2c5 Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Wed, 27 Nov 2024 13:31:48 -0800 Subject: [PATCH] =?UTF-8?q?Make=20sure=20Document=20Bar=20doesn=E2=80=99t?= =?UTF-8?q?=20go=20missing=20(#67322)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: draganescu --- packages/editor/src/components/header/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/header/index.js b/packages/editor/src/components/header/index.js index 2a5629b080caf..51c341f2c1bd1 100644 --- a/packages/editor/src/components/header/index.js +++ b/packages/editor/src/components/header/index.js @@ -97,8 +97,10 @@ function Header( { useState( true ); const hasCenter = - ( ! hasBlockSelection || isBlockToolsCollapsed ) && - ! isTooNarrowForDocumentBar; + ! isTooNarrowForDocumentBar && + ( ! hasFixedToolbar || + ( hasFixedToolbar && + ( ! hasBlockSelection || isBlockToolsCollapsed ) ) ); const hasBackButton = useHasBackButton(); /* * The edit-post-header classname is only kept for backward compatability