Skip to content

Broken zoom out view when exiting style book #66133

@ajlende

Description

@ajlende

Description

The zoomed out view is too narrow when exiting the style book.

I assume it's related to saving the initial width of a container that doesn't exist when entering zoom out.

Step-by-step reproduction instructions

  1. Start in the site editor.
  2. Open the 'Styles' sidebar.
  3. Open the 'Style Book'.
  4. Enter 'Zoom Out'.
  5. Close the 'Style Book'.

I've also sometimes been able to reproduce the issue when entering zoom out via 'Browse Styles' and then opening the 'Style Book'.

Screenshots, screen recording, code snippet

broken-zoom-out-style-book.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 fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions