-
+
+
{ __( 'Preview' ) }
+
+
}
>
) }
diff --git a/packages/block-editor/src/components/block-switcher/style.scss b/packages/block-editor/src/components/block-switcher/style.scss
index b80a586023045..2ef182aca140e 100644
--- a/packages/block-editor/src/components/block-switcher/style.scss
+++ b/packages/block-editor/src/components/block-switcher/style.scss
@@ -97,18 +97,6 @@
.block-editor-block-switcher__popover .components-popover__content {
@include break-medium {
position: relative;
-
- .block-editor-block-preview {
- border: $border-width solid $light-gray-500;
- box-shadow: $shadow-popover;
- background: $white;
- position: absolute;
- left: 100%;
- top: -1px;
- bottom: -1px;
- width: 300px;
- height: auto;
- }
}
// Hide the bottom border on the last panel so it stacks with the popover.
@@ -137,3 +125,26 @@
.block-editor-block-switcher__popover .block-editor-block-types-list {
margin: 8px -8px -8px;
}
+
+.block-editor-block-switcher__preview {
+ border: $border-width solid $light-gray-500;
+ box-shadow: $shadow-popover;
+ background: $white;
+ position: absolute;
+ left: 100%;
+ top: -1px;
+ bottom: -1px;
+ width: 300px;
+ height: auto;
+ padding: 10px;
+ display: none;
+
+ @include break-medium {
+ display: block;
+ }
+}
+
+.block-editor-block-switcher__preview-title {
+ margin-bottom: 10px;
+ color: $dark-gray-300;
+}
diff --git a/packages/block-editor/src/components/inserter/menu.js b/packages/block-editor/src/components/inserter/menu.js
index 12d119ce4ab51..8fa9a61ea30fd 100644
--- a/packages/block-editor/src/components/inserter/menu.js
+++ b/packages/block-editor/src/components/inserter/menu.js
@@ -351,7 +351,13 @@ export class InserterMenu extends Component {
{ hoveredItem && isReusableBlock( hoveredItem ) &&
-