diff --git a/packages/block-editor/src/components/use-resize-canvas/index.js b/packages/block-editor/src/components/use-resize-canvas/index.js index f90e67604f31d8..803719fc8b8915 100644 --- a/packages/block-editor/src/components/use-resize-canvas/index.js +++ b/packages/block-editor/src/components/use-resize-canvas/index.js @@ -63,7 +63,7 @@ export default function useResizeCanvas( width: getCanvasWidth( device ), margin: marginValue() + 'px auto', height, - borderRadius: '2px', + borderRadius: '2px 2px 2px 2px', border: '1px solid #ddd', overflowY: 'auto', }; diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index 1a969e1619c276..bc0cc88f9c164c 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -60,7 +60,7 @@ function MaybeIframe( {
{ children }
@@ -167,14 +167,10 @@ export default function VisualEditor( { styles } ) { ); return ( - { themeSupportsLayout && ( ) } - { isTemplateMode && ( - - ) } - - - { + clearSelectedBlock(); + setIsEditingTemplate( false ); + } } + > + { __( 'Back' ) } + + ) } + - - - - { ! isTemplateMode && ( -
- -
- ) } - - - -
-
-
-
-
-
+ + + + + { ! isTemplateMode && ( +
+ +
+ ) } + + + +
+
+
+
+
+ + <__unstableBlockSettingsMenuFirstItem> { ( { onClose } ) => ( ) } - + ); } diff --git a/packages/edit-post/src/components/visual-editor/style.scss b/packages/edit-post/src/components/visual-editor/style.scss index 234db2a5a96637..fecfda3fa3e6e6 100644 --- a/packages/edit-post/src/components/visual-editor/style.scss +++ b/packages/edit-post/src/components/visual-editor/style.scss @@ -32,16 +32,13 @@ // Default background color so that grey .edit-post-editor-regions__content // color doesn't show through. background-color: $white; + flex: 1; cursor: text; > * { cursor: auto; } - - > div { - min-height: 100%; - } } // Ideally this wrapper div is not needed but if we want to match the positioning of blocks @@ -74,3 +71,9 @@ color: $gray-100; } } + +.edit-post-visual-editor__content-area { + width: 100%; + height: 100%; + position: relative; +}