Skip to content

Make the block-pattern inserter spatially-aware #30210

@kjellr

Description

@kjellr

What problem does this address?

Currently, it's possible to insert very large block patterns into very small spaces. This ends up making them seem very broken.

large-pattern

What is your proposed solution?

We should have some sort of logic that determines whether a block pattern should be inserted or not. For instance, when someone has a small column selected, don't show wide/full-width patterns in the inserter.

It would be interesting to extend that to themes as well. For example: if a pattern specifies that its preview viewportWidth should be 1800px wide, maybe that's an indication that the pattern shouldn't be available while using a theme with a 600px content width and no wide/full support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] InserterThe main way to insert blocks using the + button in the editing interface[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[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