Skip to content

Commit

Permalink
Show template center UI when no block is selected (#56217)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Dec 5, 2023
1 parent 62ecf4a commit d1d0b2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/edit-post/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ function Header( {
className={ classnames(
'selected-block-tools-wrapper',
{
'is-collapsed': isBlockToolsCollapsed,
'is-collapsed':
isEditingTemplate &&
isBlockToolsCollapsed,
}
) }
>
Expand Down Expand Up @@ -155,9 +157,11 @@ function Header( {
<div
className={ classnames( 'edit-post-header__center', {
'is-collapsed':
isEditingTemplate &&
hasBlockSelected &&
! isBlockToolsCollapsed &&
isLargeViewport &&
isEditingTemplate,
hasFixedToolbar &&
isLargeViewport,
} ) }
>
{ isEditingTemplate && <DocumentActions /> }
Expand Down

1 comment on commit d1d0b2a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in d1d0b2a.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7107441670
📝 Reported issues:

Please sign in to comment.