You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion menu, when opening on top, isn't positioned correctly #2155
Describe the bug
When opening any suggestions menu, if there's not enough space on the bottom and it opens on top, if the menu only has a few items, it is placed far above the cursor.
It appears the suggestions menu has a min-height of 300px. If the menu's items are few and thus the menu is shorter than 300px, the menu appears too far above. Not sure why the 300px min-height is added but it causes this issue and there's no way to override it since its added as a style attribute not through a class.
You can reproduce this issue with the / menu by simply filtering down to a small number of items.
Fixed by #2232, which removed the 300px minimum height: a short menu above the cursor now stays next to it. #3190 adds a test for this (the menu stays next to the trigger while the user filters the items).
Activity
fix(react): decide the suggestion menu's side from geometry only, cap…
YousefED commentedon Oct 13, 2026
Fixed by #2232, which removed the 300px minimum height: a short menu above the cursor now stays next to it. #3190 adds a test for this (the menu stays next to the trigger while the user filters the items).
fix(react): place the suggestion menu below unless cramped, keep its …