Skip to content

Use custom postion calculator for the dashboard page contex-menu popover

Administrator requested to merge code-insights/contex-menu-position-fix into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/22793

Background

This PR adds a custom position calculator for the context menu popover element. As you can see on screenshots below before all context menus were right-aligned. With changes from this PR, all context-menus (dashboard context and insight card context menu) have share target right border position.

You can find Figma designs about these context menus here

Before Screenshot 2021-07-21 at 17 00 40 Screenshot 2021-07-21 at 17 00 51
After Screenshot 2021-07-21 at 17 01 04 Screenshot 2021-07-21 at 17 01 23

Merge request reports

Loading