WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.39k stars 4.15k forks source link

Zoom out mode doesn't persist when switching to code editor #65783

Open simison opened 2 hours ago

simison commented 2 hours ago

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):

Screenshot 2024-10-01 at 14 13 48

Switch to code editor:

Screenshot 2024-10-01 at 14 13 59

Exit code editor:

Screenshot 2024-10-01 at 14 14 33

Note how the editor isn't in zoomed-out mode but the zoomed-out button remains active:

Screenshot 2024-10-01 at 14 14 46

Screenshots, screen recording, code snippet

No response

Environment info

Please confirm that you have searched existing issues in the repo.

Please confirm that you have tested with all plugins deactivated except Gutenberg.

simison commented 2 hours ago

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.