Skip to content

Commit

Permalink
Fix mover width/size regressions (#29889)
Browse files Browse the repository at this point in the history
* Width fix.

* Fix width regression.
  • Loading branch information
jasmussen authored Mar 16, 2021
1 parent 13eb6f9 commit c9e0904
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@
.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button {
min-width: $block-toolbar-height/2;
width: $block-toolbar-height/2;

svg {
min-width: $block-toolbar-height/2;
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/block-mover/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
width: $block-toolbar-height - $grid-unit-15 / 2;
padding-right: $grid-unit-15 - $border-width !important;
padding-left: $grid-unit-15 / 2 !important;

// Extra specificity to override standard toolbar button styles.
&.block-editor-block-mover-button {
min-width: $block-toolbar-height - $grid-unit-15 / 2;
}
}

// Focus style.
Expand Down

0 comments on commit c9e0904

Please sign in to comment.