Repository navigation
fix(ui): align submenu items with the parent row - #1627
Conversation
BinariesBuilt from Try it in the browser (emulated): runs this build in 32-bit Linux emulated inside the page, with no download or sign-in. It is much slower than a native build and is meant for quick checks of behavior and UI, not performance or terminal compatibility. Startup takes up to a minute.
Downloads need a GitHub sign-in and arrive as zips. On Linux and macOS, run |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Editor, diff, and log benchmarksComparing Allocated bytes measure total allocation per operation, not peak or retained RAM. Logs are opened by each side's built Code files open a 64 MiB Go file, this repository's sources repeated, with LSP and the git gutter off; EditorGeometric-mean change: time +0.2%, allocated bytes 0.0%, allocations 0.0%. Click here to see benchmark details
Diff viewsGeometric-mean change: time +0.5%, allocated bytes 0.0%, allocations 0.0%. Click here to see benchmark details
Log filesGeometric-mean change: time -0.9%, peak RSS 0.0%. Click here to see benchmark details
Code filesGeometric-mean change: time +1.2%, peak RSS -1.0%. Click here to see benchmark details
Timing changes are informational because shared CI runners are noisy; a benchmark error still fails the job. |
Binary sizeComparing
|
Submenus placed their top border on the hovered parent row, leaving the first child item one row too low. Move the submenu up one row so its first item aligns with the parent, while retaining screen-edge clamping.
Validation:
TestContextMenuSubmenuRowAlignmentcovers first and later parent items, opening to the left, bottom-edge clamping, and clicking the rendered child row. It fails before the fix and passes afterward. All context-menu tests,make test,make lint, andmake buildpass.Before/after text screenshots from the real binary (
--size 100x26 --exec 'key alt+o; key right; screenshot PATH; quit'), cropped to the menus:Before:
After:
Summary by CodeRabbit