Skip to content

Template part focus mode: ensure size of screen corresponds with content in the template part #37868

@dianeco

Description

@dianeco

Description

When I try to build a header inside the template part, the small area makes it difficult to edit, especially when you have a thin header and choose to set the overlay menu to always or if you have a small screen (with List View and Settings sidebar opened) and the menu is displayed as a burger.

Also, I find it confusing not to see a block inserter (Type / to choose a block) inside the editor when creating a new template part. It isn't consistent with how you edit a template or a page.

Step-by-step reproduction instructions

  1. Use the Twenty Twenty-Two theme.
  2. Open Site editor > Template parts.
  3. Click Add New to create a template part and choose Header as the area.
  4. Click on the block inserter in the top toolbar and open the Patterns tab.
  5. Select the Headers category and search for the pattern named "Title and button header". Click on it to insert it.
  6. Select the row block and edit the top and bottom padding (20px) to make it thinner.
  7. Click on the burger to edit the menu.
  8. Observe that it's challenging to edit the menu as you can't see it at first. You have to scroll in a small area to edit it.

Screenshots, screen recording, code snippet

Small area to edit the header

header

No block insertor when creating a new template part

template-part-no-inserter

Environment info

WordPress 4.9 RC 1 with/without Gutenberg latest version installed (12.3.2)

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

    [Block] NavigationAffects the Navigation Block[Block] Template PartAffects the Template Parts Block[Feature] Focus ModeZoomed in focus mode for editing things like template parts[Type] FeedbackIssues that relate purely to feedback on a feature that isn't necessarily actionable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions