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

Site Editor: Canvas width glitch when selecting 'Browse Styles' then closing inserter sidebar #65080

Closed
2 tasks done
talldan opened this issue Sep 5, 2024 · 4 comments
Closed
2 tasks done
Assignees
Labels
[Feature] Zoom Out [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@talldan
Copy link
Contributor

talldan commented Sep 5, 2024

Step-by-step reproduction instructions

  1. Open the Site Editor and edit a page
  2. Select the + button on the top bar to open the Inserter sidebar
  3. Select the Styles button on the top bar to open the global styles sidebar
  4. Select 'Browse Styles' in the global styles sidebar, observe the canvas zooms out
  5. Now close the Inserter sidebar, observe that the canvas looks unusual with scrollbars moved into the middle of the viewport

If you compare this to engaging and disengaging 'Browse styles' without the inserter sidebar open, you'll see that it looks completely different, the scrollbars stay at the edge of the screen.

Screenshots, screen recording, code snippet

Kapture.2024-09-05.at.08.54.37.mp4

Environment info

Brave / Mac OS
Latest Gutenberg trunk

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
@talldan talldan added [Type] Bug An existing feature does not function as intended [Feature] Zoom Out labels Sep 5, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Sep 18, 2024
@stokesman stokesman linked a pull request Sep 19, 2024 that will close this issue
@stokesman
Copy link
Contributor

stokesman commented Sep 19, 2024

Here’s latest trunk showing the same with the newer toggle button (and in the Post editor):

zoom-out-trunk-v-sibebars.mp4

That button seems like it will increase exposure to this bug.


#63390 under the same scenarios
zoom-out-63390-v-sidebars.mp4

@talldan
Copy link
Contributor Author

talldan commented Oct 17, 2024

This isn't working too badly at the moment, but that seems mostly because Zoom Out mode disengages whenever trying to reproduce the issue. Sometimes I think it disengages when it shouldn't (like if you still have browse styles or the pattern inserter open).

@draganescu
Copy link
Contributor

I don't think this is an issue anymore. It used to be reproducible using the same steps but using the list view instead of the inserter.

@draganescu
Copy link
Contributor

I will close this as it seems to be gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Zoom Out [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
4 participants