Skip to content

Commit

Permalink
Fix missing border in the quick inserter. (#35307)
Browse files Browse the repository at this point in the history
* Fix missing border in the quick inserter.

In the quick inserter, when no search results are found, there is some left/right border missing. This is caused by some margin applied to the `block-editor-inserter__no-results` div. While this margin could just be removed, I feel it is easier to just apply `overflow: hidden` to the container element. That way the spacing is preserved and should prevent any future issues.

* Update style.scss

Remove top margin and revert previous change.
  • Loading branch information
ndiego authored Oct 5, 2021
1 parent 6a912c5 commit 102b944
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ $block-inserter-tabs-height: 44px;

.block-editor-inserter__no-results {
padding: $grid-unit-40;
margin-top: $grid-unit-40 * 2;
text-align: center;
}

Expand Down

0 comments on commit 102b944

Please sign in to comment.