-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom out mode doesn't persist when switching to code editor or between templates #65783
Comments
I expected to stay in the zoomed out mode, but if that's not what should happen, then the button at least shouldn't remain active upon switching to code editor. |
I suspect that the state for Zoom Out is still "active" but the UI has reset itself. There maybe an effect or listener that handles toggling the "zoom" that we need to make more intelligent / reactive. Update: I tested and indeed it is only the "zooming of the canvas" that isn't displayed properly. The actual "zoom out" mode remains active. |
Yes, The issue is due to value of I have put this condition, it works for code editor switching (because the container width doesn't change), but fails when switching to different template. I guess we either need to save @getdave thoughts? |
Description
When in zoomed-out view and switching to the code editor, the zoomed-out mode doesn't persist when closing the code editor. However, the button in the header remains active.
Step-by-step reproduction instructions
Enable zoomed-out view (tested in post editor):
Switch to code editor:
Exit code editor:
Note how the editor isn't in zoomed-out mode but the zoomed-out button remains active:
Screenshots, screen recording, code snippet
No response
Environment info
trunk
as of Oct 1Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: