Skip to content

Commit

Permalink
Fix issue with single block. (#25107)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Sep 8, 2020
1 parent 2407c9e commit 481ca1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,
.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,
.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon {
padding: 0;

.block-editor-block-icon {
height: 100%;
position: relative;
Expand Down
10 changes: 5 additions & 5 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@
// Switcher.
.block-editor-block-switcher .components-dropdown-menu__toggle,
.block-editor-block-switcher__no-switcher-icon {
min-width: $block-toolbar-height - $grid-unit-15 / 2 !important;
width: $block-toolbar-height - $grid-unit-15 / 2 !important;
padding-left: $grid-unit-15 - $border-width !important;
padding-right: $grid-unit-15 / 2 !important;

.block-editor-block-icon {
width: $button-size-small !important;
margin: 0 !important;
Expand All @@ -67,6 +62,11 @@
right: $grid-unit-05 !important;
}
}

// Compensate for width of block switcher.
.block-editor-block-mover {
margin-left: -$grid-unit-15 / 2;
}
}

.block-editor-block-toolbar,
Expand Down

0 comments on commit 481ca1b

Please sign in to comment.