Skip to content

Iterating on the inserter for mobile #2691

@karmatosed

Description

@karmatosed

We have a lot of similar issues, all around improving the inserter for mobile. Having one issue we can focus on will help get this solved.

The mobile experience for inserting right now has a number of issues and one solution is to reduce this to a single inserter. There are a number of tickets to reflect on for this:

(Note: closing those tickets to focus here)

Technical issues around this are summarised [here] by @aduth (#2602 (comment)):

It's a tricky problem to solve because the Popover component has built-in logic to try to flip itself when exceeding bounds, but doesn't yet have the ability to know how to handle the case where there is no suitable position to open.

In my mind, I'm thinking one or more of:

The inserter menu probably shouldn't have offset 100vh height for the content inserter
If we encounter the case where no suitable position exists, we should at least set a max height/width of the popover to ensure it doesn't go offscreen, then allow remaining content to be scrollable
Edit: Another, perhaps more preferable option, is to treat the inserter as a full-page modal in mobile contexts, not "attached" to the specific anchor node.

Ultimately, we need a solution that solves all these issues. My thoughts are a single inserter is the way to go. I would recommend it being the top one, but discussion and ideas are important around this. We are not going to get far in mobile testing without this being fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mobile WebViewport sizes for mobile and tablet devices[Feature] InserterThe main way to insert blocks using the + button in the editing interface

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions