Skip to content

Commit

Permalink
Edit Widgets: Fix invisible action area when the top toolbar is enabl…
Browse files Browse the repository at this point in the history
…ed (#54329)
  • Loading branch information
t-hamano authored Sep 11, 2023
1 parent fee1467 commit c10b0f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ function BlockContextualToolbar( { focusOnMount, isFixed, ...props } ) {
return;
}

// get the width of the pinned items in the post editor
// get the width of the pinned items in the post editor or widget editor
const pinnedItems = document.querySelector(
'.edit-post-header__settings'
'.edit-post-header__settings, .edit-widgets-header__actions'
);

// get the width of the left header in the site editor
Expand Down
4 changes: 2 additions & 2 deletions packages/edit-widgets/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
align-items: center;
justify-content: space-between;
height: $header-height;
padding: 0 $grid-unit-20;
overflow: auto;
background: #fff;

Expand All @@ -16,6 +15,7 @@
display: flex;
align-items: center;
justify-content: center;
padding-left: $grid-unit-20;
}

.edit-widgets-header__title {
Expand All @@ -27,7 +27,7 @@
.edit-widgets-header__actions {
display: flex;
align-items: center;

padding-right: $grid-unit-20;
gap: $grid-unit-05;

@include break-small() {
Expand Down

0 comments on commit c10b0f6

Please sign in to comment.