Skip to content

Commit

Permalink
Make sure Document Bar doesn’t go missing (#67322)
Browse files Browse the repository at this point in the history
Co-authored-by: draganescu <[email protected]>
  • Loading branch information
stokesman and draganescu authored Nov 27, 2024
1 parent fe70c12 commit b20ac37
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 b20ac37

Please sign in to comment.