Skip to content

Commit

Permalink
Make sure Document bar doesn’t go missing
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Nov 26, 2024
1 parent 4c30b00 commit 410d8a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 410d8a6

Please sign in to comment.