Device preview button should be disabled in the pattern/template part editor #65931
Closed
Description
opened on Oct 8, 2024
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:
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