Skip to content

Commit

Permalink
Adding a maximum height to the preview of the long blocks (WordPress#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aktasfatih authored Aug 26, 2020
1 parent 6129e72 commit 7ee1c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
align-items: center;
flex-grow: 1;
min-height: 80px;
max-height: 160px;
}

.block-editor-block-switcher__styles__menugroup {
Expand Down
2 changes: 2 additions & 0 deletions packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ $block-inserter-tabs-height: 44px;
position: absolute;
top: $grid-unit-20;
left: calc(100% + #{$grid-unit-20});
max-height: calc(100% - #{$grid-unit-40});
overflow-y: hidden;

@include break-medium {
display: block;
Expand Down

0 comments on commit 7ee1c04

Please sign in to comment.