diff --git a/packages/block-library/src/query/edit/pattern-selection-modal.js b/packages/block-library/src/query/edit/pattern-selection-modal.js index 731740ace64bed..a70f7ee959e965 100644 --- a/packages/block-library/src/query/edit/pattern-selection-modal.js +++ b/packages/block-library/src/query/edit/pattern-selection-modal.js @@ -62,6 +62,7 @@ export default function PatternSelectionModal( { overlayClassName="block-library-query-pattern__selection-modal" title={ __( 'Choose a pattern' ) } onRequestClose={ () => setIsPatternSelectionModalOpen( false ) } + isFullScreen={ true } >
diff --git a/packages/block-library/src/query/editor.scss b/packages/block-library/src/query/editor.scss index 269c6c12e58361..9488b6c0251673 100644 --- a/packages/block-library/src/query/editor.scss +++ b/packages/block-library/src/query/editor.scss @@ -20,20 +20,17 @@ } .block-library-query-pattern__selection-modal { - // To keep modal dimensions consistent as subsections are navigated, width - // and height are used instead of max-(width/height). - .components-modal__frame { - @include break-small() { - width: calc(100% - #{$grid-unit-20 * 2}); - height: calc(100% - #{$header-height * 2}); - } - @include break-medium() { - width: $break-medium - $grid-unit-20 * 2; + .block-editor-block-patterns-list { + column-count: 2; + column-gap: $grid-unit-30; + + @include break-wide() { + column-count: 3; } - @include break-large() { - height: 70%; + .block-editor-block-patterns-list__list-item { + break-inside: avoid-column; } } diff --git a/packages/block-library/src/template-part/edit/index.js b/packages/block-library/src/template-part/edit/index.js index 3dcf548bd117a3..667d78dbfebbf7 100644 --- a/packages/block-library/src/template-part/edit/index.js +++ b/packages/block-library/src/template-part/edit/index.js @@ -205,6 +205,7 @@ export default function TemplatePartEdit( { onRequestClose={ () => setIsTemplatePartSelectionOpen( false ) } + isFullScreen={ true } > { setModalState( START_PAGE_MODAL_STATES.CLOSED ); } } diff --git a/packages/edit-post/src/components/start-page-options/style.scss b/packages/edit-post/src/components/start-page-options/style.scss index aaed2852f393a2..bd1261e86a8973 100644 --- a/packages/edit-post/src/components/start-page-options/style.scss +++ b/packages/edit-post/src/components/start-page-options/style.scss @@ -1,18 +1,3 @@ -.edit-post-start-page-options__modal { - // To keep modal dimensions consistent as subsections are navigated, width - // and height are used instead of max-(width/height). - @include break-small() { - width: 95vw; - height: 95vh; - max-height: none; - } - @include break-medium() { - width: 90vw; - height: 90vh; - max-width: none; - } -} - // 2 column masonry layout. .edit-post-start-page-options__modal-content .block-editor-block-patterns-list { column-count: 2; diff --git a/packages/edit-site/src/components/start-template-options/index.js b/packages/edit-site/src/components/start-template-options/index.js index 41cf5c495b9bd0..bc8017fc32029b 100644 --- a/packages/edit-site/src/components/start-template-options/index.js +++ b/packages/edit-site/src/components/start-template-options/index.js @@ -121,6 +121,7 @@ function StartModal( { slug, isCustom, onClose, postType } ) { closeLabel={ __( 'Cancel' ) } focusOnMount="firstElement" onRequestClose={ onClose } + isFullScreen={ true } >