diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 075c228eb3e84e..ccdd7f3dc3af4d 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -60,7 +60,7 @@ function Layout( { } ) { const sidebarIsOpened = editorSidebarOpened || pluginSidebarOpened || publishSidebarOpened; - const className = classnames( 'edit-post-layout', { + const className = classnames( 'edit-post-layout', 'is-mode-' + mode, { 'is-sidebar-opened': sidebarIsOpened, 'has-fixed-toolbar': hasFixedToolbar, 'has-metaboxes': hasActiveMetaboxes, @@ -81,7 +81,7 @@ function Layout( {
-
- { ( mode === 'text' || ! isRichEditingEnabled ) && } - { isRichEditingEnabled && mode === 'visual' && } -
- -
-
- -
- { isMobileViewport && sidebarIsOpened && } + { ( mode === 'text' || ! isRichEditingEnabled ) && } + { isRichEditingEnabled && mode === 'visual' && } +
+
- { isRichEditingEnabled && mode === 'visual' && ( -
- -
- ) } +
+ +
+ { isMobileViewport && sidebarIsOpened && }
+ { isRichEditingEnabled && mode === 'visual' && ( +
+ +
+ ) } { publishSidebarOpened ? (