Skip to content

Commit

Permalink
tweak sizing to line up with button
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Oct 17, 2024
1 parent c928926 commit ce8309c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ export default function ChangeDesign( { clientId } ) {
renderContent={ () => (
<DropdownContentWrapper
className="block-editor-block-toolbar-change-design-content-wrapper"
paddingSize="medium"
paddingSize="none"
>
<BlockPatternsList
shownPatterns={ currentShownPatterns }
blockPatterns={ sameCategoryPatternsWithSingleWrapper }
onClickPattern={ onClickPattern }
showTitle={ false }
/>
</DropdownContentWrapper>
) }
Expand Down
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,12 @@
}

.block-editor-block-toolbar-change-design-content-wrapper {
width: 350px; // Same with quick inserter results.
padding: $grid-unit-15;
width: 320px;
.block-editor-block-patterns-list {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: $grid-unit-10;
grid-gap: $grid-unit-15;
.block-editor-block-patterns-list__list-item {
margin-bottom: 0;
}
Expand Down

0 comments on commit ce8309c

Please sign in to comment.