From cb24e93252cf8aaa64d3ea4db337c950c1c74aec Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Thu, 7 Nov 2024 21:03:34 +0900 Subject: [PATCH] Enable zoom out mode for non-iframe editor (#66789) Co-authored-by: t-hamano Co-authored-by: stokesman Co-authored-by: annezazu Co-authored-by: ndiego Co-authored-by: ellatrix --- packages/editor/src/components/editor-interface/index.js | 1 - packages/editor/src/components/header/index.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/editor/src/components/editor-interface/index.js b/packages/editor/src/components/editor-interface/index.js index aee75695b3fda4..3692a5ed797f5e 100644 --- a/packages/editor/src/components/editor-interface/index.js +++ b/packages/editor/src/components/editor-interface/index.js @@ -131,7 +131,6 @@ export default function EditorInterface( { customSaveButton={ customSaveButton } forceDisableBlockTools={ forceDisableBlockTools } title={ title } - isEditorIframed={ ! disableIframe } /> ) } diff --git a/packages/editor/src/components/header/index.js b/packages/editor/src/components/header/index.js index 5a9cc2f94a5951..2a5629b080caf8 100644 --- a/packages/editor/src/components/header/index.js +++ b/packages/editor/src/components/header/index.js @@ -53,7 +53,6 @@ function Header( { forceDisableBlockTools, setEntitiesSavedStatesCallback, title, - isEditorIframed, } ) { const isWideViewport = useViewportMatch( 'large' ); const isLargeViewport = useViewportMatch( 'medium' ); @@ -168,7 +167,7 @@ function Header( { forceIsAutosaveable={ forceIsDirty } /> - { canBeZoomedOut && isEditorIframed && isWideViewport && ( + { canBeZoomedOut && isWideViewport && ( ) }