Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Enable zoom out mode for non-iframe editor
  • Loading branch information
t-hamano committed Nov 7, 2024
commit 88516fe5ccd5fb68b63e6b44829f7541603a2bde
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