Skip to content

Commit

Permalink
Add overflow:hidden and adjust margins (#44079)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan authored Sep 13, 2022
1 parent a169d7c commit e8faeb6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@
.block-editor-block-switcher__preview {
width: 300px;
height: auto;
max-height: 500px;
padding: $grid-unit-20;
// Subtract margin from max-height.
max-height: calc(500px - #{$grid-unit-40});
margin: $grid-unit-20;
overflow: hidden;
}
}

Expand Down

0 comments on commit e8faeb6

Please sign in to comment.