Skip to content

Device Preview / View dropdown in header disappears when inside template part editor. #45256

@albanyacademy

Description

@albanyacademy

Description

When navigating to Appearance -> Editor -> Template Parts -> any template part, the device preview button at the top disappears. The canvas is resizable, but it appears that block settings making use of devicePreview don't work anymore either, and this switch in UI is unintuitive.

Step-by-step reproduction instructions

  1. Go to Appearance > Editor
  2. Open the left-hand panel and navigate to Template Parts
  3. Edit a template part
  4. Observe that the top bar no longer has a device preview dropdown, and any custom blocks using device preview in their edit.js no longer trigger a canvas resize.

Screenshots, screen recording, code snippet

image

Environment info

blank theme, wp 6.0.2.

tested with gutenberg plugin (14.3.1) and without.

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

    General InterfaceParts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions