diff --git a/packages/edit-site/src/components/page-patterns/style.scss b/packages/edit-site/src/components/page-patterns/style.scss index 2cacc8fab607c..8a2d71d87633d 100644 --- a/packages/edit-site/src/components/page-patterns/style.scss +++ b/packages/edit-site/src/components/page-patterns/style.scss @@ -4,10 +4,18 @@ .page-patterns-preview-field { display: flex; + justify-content: center; + align-items: center; flex-direction: column; height: 100%; border-radius: $radius-medium; + .dataviews-view-grid & { + .block-editor-block-preview__container { + height: 100%; + } + } + .dataviews-view-table & { width: 96px; flex-grow: 0; diff --git a/packages/edit-site/src/components/page-templates/style.scss b/packages/edit-site/src/components/page-templates/style.scss index bb9069e2c5038..89aa9dd312fb4 100644 --- a/packages/edit-site/src/components/page-templates/style.scss +++ b/packages/edit-site/src/components/page-templates/style.scss @@ -1,5 +1,7 @@ .page-templates-preview-field { display: flex; + justify-content: center; + align-items: center; flex-direction: column; height: 100%; width: 100%;