From 410d8a62ca4638efd455421bdbe2eb33fc3b1456 Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Tue, 26 Nov 2024 08:33:40 -0800 Subject: [PATCH] =?UTF-8?q?Make=20sure=20Document=20bar=20doesn=E2=80=99t?= =?UTF-8?q?=20go=20missing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 2a5629b080caf8..51c341f2c1bd16 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