Skip to content

Commit

Permalink
Add is-zoom-out to top level site editor element
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Feb 24, 2024
1 parent 9469295 commit 634b009
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default function Layout() {

const {
isDistractionFree,
isZoomOut,
hasFixedToolbar,
hasBlockSelected,
canvasMode,
Expand All @@ -96,6 +97,9 @@ export default function Layout() {
'core',
'distractionFree'
),
isZoomOut:
select( blockEditorStore ).__unstableGetEditorMode() ===
'zoom-out',
hasBlockSelected:
select( blockEditorStore ).getBlockSelectionStart(),
};
Expand Down Expand Up @@ -172,6 +176,7 @@ export default function Layout() {
'is-full-canvas': canvasMode === 'edit',
'has-fixed-toolbar': hasFixedToolbar,
'is-block-toolbar-visible': hasBlockSelected,
'is-zoom-out': isZoomOut,
}
) }
>
Expand Down

0 comments on commit 634b009

Please sign in to comment.