Skip to content

Commit

Permalink
Tweaking widths. Ensure expansion on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Nov 26, 2024
1 parent 74a4423 commit 87b24ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/query/edit/query-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function QueryToolbar( { clientId, attributes } ) {
<Dropdown
contentClassName="block-editor-block-settings-menu__popover"
focusOnMount="firstElement"
expandOnMobile
renderToggle={ ( { isOpen, onToggle } ) => (
<ToolbarButton
aria-haspopup="true"
Expand All @@ -40,6 +41,7 @@ export default function QueryToolbar( { clientId, attributes } ) {
clientId={ clientId }
attributes={ attributes }
showSearch={ false }
showTitlesAsTooltip
/>
) }
/>
Expand Down
13 changes: 13 additions & 0 deletions packages/block-library/src/query/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,17 @@

.block-editor-block-settings-menu__popover {
min-width: 500px;
.block-editor-block-patterns-list {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: $grid-unit-15;
overflow: hidden;
}
.block-editor-block-patterns-list__list-item {
margin-bottom: 0;
min-width: 200px;
.block-editor-block-preview__container {
max-height: 250px;
}
}
}

0 comments on commit 87b24ab

Please sign in to comment.