diff --git a/editor/layout/index.js b/editor/layout/index.js
index a3ffbfde124a48..d1bc65167f4066 100644
--- a/editor/layout/index.js
+++ b/editor/layout/index.js
@@ -46,7 +46,9 @@ function Layout( { mode, isSidebarOpened, notices, ...props } ) {
{ mode === 'text' && }
{ mode === 'visual' && }
-
+
+
+
{ isSidebarOpened && }
diff --git a/editor/layout/style.scss b/editor/layout/style.scss
index 6abc2eb68c16da..3cc384e1081764 100644
--- a/editor/layout/style.scss
+++ b/editor/layout/style.scss
@@ -5,22 +5,27 @@
.editor-layout {
position: relative;
+
+ .components-notice-list {
+ position: fixed;
+ top: 100px;
+ right: auto;
+ }
}
-.editor-layout__content {
- position: relative;
- display: flex;
- flex-direction: column;
+.editor-layout__metaboxes:not(:empty) {
+ border-top: 1px solid $light-gray-500;
+ margin-top: 10px;
+ padding: 10px 0;
+
+ .editor-meta-boxes-iframe {
+ max-width: $visual-editor-max-width;
+ margin: auto;
+ }
}
-.editor-layout__editor {
- flex-basis: 100%;
+.editor-layout__content {
+ position: relative;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
-
-.editor-layout .components-notice-list {
- position: fixed;
- top: 100px;
- right: auto;
-}
diff --git a/editor/meta-boxes/index.js b/editor/meta-boxes/index.js
index 213ec43bbdc266..e44ec5e2a4e056 100644
--- a/editor/meta-boxes/index.js
+++ b/editor/meta-boxes/index.js
@@ -10,14 +10,20 @@ import MetaBoxesIframe from './meta-boxes-iframe';
import MetaBoxesPanel from './meta-boxes-panel';
import { getMetaBox } from '../selectors';
-function MetaBox( { location, isActive } ) {
+function MetaBox( { location, isActive, usePanel = false } ) {
if ( ! isActive ) {
return null;
}
+ const element = ;
+
+ if ( ! usePanel ) {
+ return element;
+ }
+
return (
-
+ { element }
);
}
diff --git a/editor/sidebar/post-settings/index.js b/editor/sidebar/post-settings/index.js
index b70e263583bb42..71a6aad75406e2 100644
--- a/editor/sidebar/post-settings/index.js
+++ b/editor/sidebar/post-settings/index.js
@@ -27,7 +27,7 @@ const panel = (
-
+
);