-
+ { onStartBlank && (
+
+ ) }
diff --git a/packages/block-editor/src/components/block-pattern-setup/style.scss b/packages/block-editor/src/components/block-pattern-setup/style.scss
index 17bcf3b8191d6e..f6842684644490 100644
--- a/packages/block-editor/src/components/block-pattern-setup/style.scss
+++ b/packages/block-editor/src/components/block-pattern-setup/style.scss
@@ -5,8 +5,6 @@
align-items: flex-start;
width: 100%;
border-radius: $radius-block-ui;
- box-shadow: inset 0 0 0 $border-width $gray-900;
- outline: 1px solid transparent; // Shown for Windows 10 High Contrast mode.
// TODO change to check parent.
&.view-mode-grid {
@@ -15,37 +13,41 @@
}
.block-editor-block-pattern-setup__container {
- display: grid;
- grid-template-columns: 1fr 1fr;
- grid-gap: $grid-unit-20;
- padding: $grid-unit-20;
- max-height: 550px;
- overflow: auto;
- margin: 0 $border-width $border-width $border-width;
- width: calc(100% - #{ $border-width * 2 });
- background: $white;
+ column-gap: $grid-unit-30;
+ display: block;
+ width: 100%;
+ padding: $grid-unit-40;
+ column-count: 2;
+
+ @include break-huge() {
+ column-count: 3;
+ }
.block-editor-block-preview__container,
div[role="button"] {
cursor: pointer;
}
- .block-editor-block-pattern-setup-list__item-title {
- padding: $grid-unit-05;
- font-size: $helptext-font-size;
- text-align: center;
- }
+ .block-editor-block-pattern-setup-list__list-item {
+ break-inside: avoid-column;
+ margin-bottom: $grid-unit-30;
+
+ .block-editor-block-preview__container {
+ min-height: 100px;
+ border-radius: $radius-block-ui;
+ border: $border-width solid $gray-300;
+ }
- .block-editor-block-preview__container {
- border-radius: $radius-block-ui;
- border: $border-width solid $gray-300;
+ .block-editor-block-preview__content {
+ width: 100%;
+ }
}
}
}
.block-editor-block-pattern-setup__toolbar {
+ height: $header-height;
box-sizing: border-box;
- position: relative;
padding: $grid-unit-20;
width: 100%;
text-align: left;
@@ -54,13 +56,12 @@
// Block UI appearance.
border-radius: $radius-block-ui $radius-block-ui 0 0;
background-color: $white;
- box-shadow: inset 0 0 0 $border-width $gray-900;
- outline: 1px solid transparent; // Shown for Windows 10 High Contrast mode.
-
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
+ border-top: 1px solid $gray-300;
+ align-self: flex-end;
.block-editor-block-pattern-setup__display-controls {
display: flex;
@@ -93,13 +94,12 @@
box-sizing: border-box;
}
.pattern-slide {
- opacity: 0;
position: absolute;
top: 0;
width: 100%;
margin: auto;
- padding: $grid-unit-20;
- transition: transform 0.5s, opacity 0.5s, z-index 0.5s;
+ padding: 0;
+ transition: transform 0.5s, z-index 0.5s;
z-index: z-index(".block-editor-block-pattern-setup .pattern-slide");
&.active-slide {
@@ -125,3 +125,9 @@
}
}
}
+
+.block-editor-block-pattern-setup__carousel,
+.block-editor-block-pattern-setup__grid {
+ width: 100%;
+ overflow-y: auto;
+}
diff --git a/packages/block-editor/src/components/block-preview/auto.js b/packages/block-editor/src/components/block-preview/auto.js
index f480b83ce58e26..d2eca43010a7c0 100644
--- a/packages/block-editor/src/components/block-preview/auto.js
+++ b/packages/block-editor/src/components/block-preview/auto.js
@@ -19,7 +19,11 @@ let MemoizedBlockList;
const MAX_HEIGHT = 2000;
-function AutoBlockPreview( { viewportWidth, __experimentalPadding } ) {
+function AutoBlockPreview( {
+ viewportWidth,
+ __experimentalPadding,
+ __experimentalMinHeight,
+} ) {
const [
containerResizeListener,
{ width: containerWidth },
@@ -68,6 +72,7 @@ function AutoBlockPreview( { viewportWidth, __experimentalPadding } ) {
contentHeight > MAX_HEIGHT
? MAX_HEIGHT * scale
: undefined,
+ minHeight: __experimentalMinHeight,
} }
>