From 524c77201fc4d4394e6a87930d97f2da9e53d528 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 3 Dec 2024 10:28:59 -0600 Subject: [PATCH] Re-add removing is-zoomed-out --- .../block-editor/src/components/iframe/use-scale-canvas.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-editor/src/components/iframe/use-scale-canvas.js b/packages/block-editor/src/components/iframe/use-scale-canvas.js index 7bde3fbe9ee898..c036e12cf49f38 100644 --- a/packages/block-editor/src/components/iframe/use-scale-canvas.js +++ b/packages/block-editor/src/components/iframe/use-scale-canvas.js @@ -409,6 +409,10 @@ export function useScaleCanvas( { } } } + + return () => { + iframeDocument.documentElement.classList.remove( 'is-zoomed-out' ); + }; }, [ startZoomOutAnimation, finishZoomOutAnimation,