Skip to content

Web UI: Query action menu overflows below footer #2494

@eamansour

Description

@eamansour

Describe the bug

If you have a sidebar full of saved queries and you try to delete the very last query, the action menu overflows below the footer and forces you to scroll down to see the "Delete" button, which can be frustrating.

It would be good if the menu didn't overflow below the footer and instead popped up in view of the user.

See below for a visual example of this:

Image

Steps to reproduce

  1. Add lots of saved queries
  2. Go to the last saved query and open the action menu
  3. Notice the overflowing menu

Expected behavior

The action menu shouldn't overflow and all options should be visible without having to scroll to see them.

  • Disable scroll while dropdown is open
  • Calculate the y coordinate of the menu and position dropdown upwards or downwards based on this y height (can't use element number of the saved query as it could have been scrolled to the bottom)
  • Add confirmation message and button for "Delete" action

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSomething isn't workingwebuiWeb UI component

    Type

    No type

    Projects

    Status

    📋 5 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions