From 0050f8ac5cc8d9e4a40192f72a88333c1062c4b4 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Fri, 25 Oct 2024 16:28:54 +0300 Subject: [PATCH] add copy back, remove pattern related group of options --- .../block-settings-menu/block-settings-dropdown.js | 11 ++++++++++- packages/editor/src/components/provider/index.js | 8 +++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js index 069bd2c9ff1ee4..ffe830cc417add 100644 --- a/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js +++ b/packages/block-editor/src/components/block-settings-menu/block-settings-dropdown.js @@ -56,6 +56,15 @@ export function BlockSettingsDropdown( { const currentClientId = block?.clientId; const count = clientIds.length; const firstBlockClientId = clientIds[ 0 ]; + + const isZoomOut = useSelect( ( select ) => { + const { __unstableGetEditorMode } = unlock( + select( blockEditorStore ) + ); + + return __unstableGetEditorMode() === 'zoom-out'; + } ); + const { firstParentClientId, onlyBlock, @@ -235,7 +244,7 @@ export function BlockSettingsDropdown( { clientId={ firstBlockClientId } /> ) } - { ! isContentOnly && ( + { ( ! isContentOnly || isZoomOut ) && ( - - { ! isZoomOut && ( - + <> + + + + ) } { mode === 'template-locked' && (