Skip to content

Commit

Permalink
Allow inner block template options to wrap (#16371)
Browse files Browse the repository at this point in the history
* Allow inner block template options to wrap on mobile.

* Remove nowrap rule.
  • Loading branch information
kjellr authored Jul 1, 2019
1 parent 08cda3f commit 496a02c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/block-editor/src/components/inner-blocks/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,23 @@

.block-editor-inner-blocks__template-picker-options.block-editor-inner-blocks__template-picker-options {
display: flex;
justify-content: center;
flex-direction: row;
flex-wrap: nowrap;
flex-wrap: wrap;
width: 100%;
margin: $grid-size-large 0;
margin: $grid-size-small 0;
list-style: none;

> li {
list-style: none;
flex-basis: 100%;
margin: $grid-size;
flex-shrink: 1;
margin: 0 $grid-size;
max-width: 100px;
}

.block-editor-inner-blocks__template-picker-option {
padding: $grid-size;
}
}

.block-editor-inner-blocks__template-picker-option {
Expand Down

0 comments on commit 496a02c

Please sign in to comment.