Skip to content

Device preview button should be disabled in the pattern/template part editor #65931

Closed
@t-hamano

Description

Description

Device preview conflicts with resizable editors. If an editor is resizable, device preview should be disabled.

Specifically, the pattern editor/template part editor in the site editor.

In WordPress 6.5, the device preview button was disabled, as shown in the screenshot below:

Image

This issue appears to have been present since WordPress 6.6.

Step-by-step reproduction instructions

  • Open the site editor.
  • Open any template part or pattern.
  • Switch to mobile view.
  • The resizable editor becomes squashed and nearly inoperable.

Screenshots, screen recording, code snippet

20b766fc00778c43ec94b9b4e2f782cd.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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions