diff --git a/packages/block-editor/src/components/block-tools/use-show-block-tools.js b/packages/block-editor/src/components/block-tools/use-show-block-tools.js index d515412953bd1..c3e3ff3845a44 100644 --- a/packages/block-editor/src/components/block-tools/use-show-block-tools.js +++ b/packages/block-editor/src/components/block-tools/use-show-block-tools.js @@ -43,8 +43,14 @@ export function useShowBlockTools() { ! hasMultiSelection() && editorMode === 'navigation'; + const _showZoomOutToolbar = + editorMode === 'zoom-out' && + block?.attributes?.align === 'full' && + ! _showEmptyBlockSideInserter && + ! maybeShowBreadcrumb; + const _showBlockToolbarPopover = - editorMode !== 'zoom-out' && + ! _showZoomOutToolbar && ! getSettings().hasFixedToolbar && ! _showEmptyBlockSideInserter && hasSelectedBlock && @@ -56,12 +62,7 @@ export function useShowBlockTools() { showBreadcrumb: ! _showEmptyBlockSideInserter && maybeShowBreadcrumb, showBlockToolbarPopover: _showBlockToolbarPopover, - showZoomOutToolbar: - editorMode === 'zoom-out' && - block?.attributes?.align === 'full' && - ! _showEmptyBlockSideInserter && - ! maybeShowBreadcrumb && - ! _showBlockToolbarPopover, + showZoomOutToolbar: _showZoomOutToolbar, }; }, [] ); } diff --git a/packages/block-editor/src/components/iframe/content.scss b/packages/block-editor/src/components/iframe/content.scss index caae348a0ab76..8c03d4224745a 100644 --- a/packages/block-editor/src/components/iframe/content.scss +++ b/packages/block-editor/src/components/iframe/content.scss @@ -54,7 +54,7 @@ display: flex; flex-direction: column; - > .is-root-container { + > .is-root-container:not(.wp-block-post-content) { flex: 1; display: flex; flex-direction: column;