Skip to content

Commit

Permalink
Account for mobile and top toolbar in one go
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Feb 1, 2021
1 parent 35be50a commit a4ac41e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function BlockToolbar( { hideDragHandle } ) {

return (
<div className={ classes }>
{ ! isMultiToolbar && (
{ ! isMultiToolbar && ! displayHeaderToolbar && (
<BlockParentSelector clientIds={ blockClientIds } />
) }
<div ref={ nodeRef } { ...showMoversGestures }>
Expand Down
5 changes: 0 additions & 5 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
position: absolute;
top: -$border-width;
left: calc(-#{$grid-unit-60} - #{$grid-unit-10} - #{$border-width});

// Top Toolbar.
.edit-post-header-toolbar__block-toolbar & {
display: none;
}
}

// Block controls.
Expand Down

0 comments on commit a4ac41e

Please sign in to comment.