Skip to content

Zoom-Out Screen Alignment and Toggle Behaviour Inconsistent Between Visual and Code Editors in Gutenberg #66157

@PARTHVATALIYA

Description

@PARTHVATALIYA

Description

  • When editing a post in the Gutenberg editor, the screen zooms out as expected if the "Zoom Out" toggle is selected in the visual editor.
  • However, after switching to the code editor, the editor zooms back in, but the "Zoom Out" toggle remains selected.
  • When switching back from the code editor to the visual editor, the editor screen aligns to the right instead of returning to its original zoomed-out state.

Step-by-step reproduction instructions

  1. Open a post in the Gutenberg editor.
  2. Toggle the "Zoom Out" mode to zoom out the editor.
  3. Switch from the visual editor to the code editor.
  4. Notice the screen zooms back in, but the "Zoom Out" toggle remains selected instead of in-active "Zoom Out" toggle.
  5. Switch back to the visual editor.
  6. Notice the editor screen is right-aligned instead of returning to the zoomed-in state.

Screenshots, screen recording, code snippet

zoom-out-issue.mp4

Environment info

No response

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

  • Yes

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

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions