Skip to content
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 Screen Alignment and Toggle Behaviour Inconsistent Between Visual and Code Editors in Gutenberg #66157

Closed
2 tasks done
PARTHVATALIYA opened this issue Oct 16, 2024 · 2 comments · Fixed by #65932
Closed
2 tasks done
Labels
[Feature] Zoom Out [Type] Bug An existing feature does not function as intended

Comments

@PARTHVATALIYA
Copy link
Contributor

PARTHVATALIYA commented Oct 16, 2024

Description

  • When editing a post in the Gutenberg editor, if the "Zoom Out" toggle is selected in the visual editor, the editor screen zooms out as expected.
  • 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
@PARTHVATALIYA PARTHVATALIYA added the [Type] Bug An existing feature does not function as intended label Oct 16, 2024
@PARTHVATALIYA
Copy link
Contributor Author

I think this PR fix this issue. PR: #65932

@PARTHVATALIYA
Copy link
Contributor Author

I have tested PR #65932 on the latest trunk version, and I can confirm that the issue has been resolved. The Zoom-Out screen alignment and toggle behavior now function as expected when switching between the visual and code editors.

Please find the attached recording that demonstrates the resolved issue.
https://github.com/user-attachments/assets/fb24d25e-cf1d-441d-9291-afc838af6240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Zoom Out [Type] Bug An existing feature does not function as intended
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants