[nu-demo] Right click on a topic in hero voice and menu items are cutoff #155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in hero_voice commit
a113955ondevelopment.Reproduction — live on herodemo (1920×1080) via Hero Browser MCP:
(1870, 1030)(bottom-right corner)right=2030, bottom=1707Screenshot:
/tmp/voice_menu_buggy.pngRoot cause —
ContextMenu.show(x, y, ...)inapp.js:559-561:Menu positioned at raw mouse coords with no boundary check. As soon as it overflows the viewport, items below the bottom edge are unreachable.
Fix — after rendering, measure with
getBoundingClientRect()and clamp:The
maxHeight + overflow-ybranch handles the edge case where the menu itself is taller than the viewport (small laptop screens) — content remains scrollable instead of hidden.Verification — same coordinates, post-fix:
right=1912 ≤ vw 1920✓bottom=1072 ≤ vh 1080✓Screenshot:
/tmp/voice_menu_fixed.png— full menu inside viewport.Meta-tracker: home#193.
Signed-off-by: mik-tf