Skip to content

Commit

Permalink
Enable zoom out mode for non-iframe editor (#66789)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: annezazu <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: ellatrix <[email protected]>
  • Loading branch information
6 people authored Nov 7, 2024
1 parent 7874fc5 commit cb24e93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/editor/src/components/editor-interface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export default function EditorInterface( {
customSaveButton={ customSaveButton }
forceDisableBlockTools={ forceDisableBlockTools }
title={ title }
isEditorIframed={ ! disableIframe }
/>
)
}
Expand Down
3 changes: 1 addition & 2 deletions packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function Header( {
forceDisableBlockTools,
setEntitiesSavedStatesCallback,
title,
isEditorIframed,
} ) {
const isWideViewport = useViewportMatch( 'large' );
const isLargeViewport = useViewportMatch( 'medium' );
Expand Down Expand Up @@ -168,7 +167,7 @@ function Header( {
forceIsAutosaveable={ forceIsDirty }
/>

{ canBeZoomedOut && isEditorIframed && isWideViewport && (
{ canBeZoomedOut && isWideViewport && (
<ZoomOutToggle disabled={ forceDisableBlockTools } />
) }

Expand Down

0 comments on commit cb24e93

Please sign in to comment.