Skip to content

Contextual block toolbar: Move below the block when bumping against the top edge #29464

Closed

Description

@jasmussen

What problem does this address?

Mostly in the site editor, if you select a block close to the top of the screen, it bumps against the screen edge and gets pushed downwards, covering content:

Screenshot 2021-03-02 at 09 04 09

What is your proposed solution?

In those cases, show the block toolbar below the block:

Screenshot 2021-03-02 at 09 04 57

We might need an additional heuristic, that still shows the toolbar above the block if the block is taller than, say, 300px.

Activity

  1. added
    General Interface
    [Package] Interface
    on Mar 2, 2021
  2. changed the title [-]Contextual block toolbar: Move below the block when bumping against the top edte[/-] [+]Contextual block toolbar: Move below the block when bumping against the top edge[/+] on Mar 2, 2021
  3. annezazu commented on May 7, 2021

    @annezazu
    Contributor

    Noting here that this same problem occurs in template editing mode (not sure how much code is shared between the site editor and template editing mode). Edited to add a quick video:

    navigation.block.squished.mov
  4. ellatrix commented on May 21, 2021

    @ellatrix
    Member

    I think the same dark padding as the template editor would be a nice solution.

  5. kjellr commented on May 26, 2021

    @kjellr
    Contributor

    Noting that this will be a frequent issue for header template parts, since they'll often be the first block included on the page. Currently, the block toolbar completely hides the arrows in the patterns carousel for that block's placeholder:

    119679526-6e0b8380-be0e-11eb-94e8-9a46a5e9b95a

  6. jasmussen commented on Aug 25, 2021

    @jasmussen
    ContributorAuthor

    🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

General Interface[Package] Interface

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions