fix(chat): anchor the More popover outside the tooltip chain (#1862) #1914

Merged
sam merged 2 commits from fix/1862-more-menu into main 2026-11-12 13:42:32 +00:00
2 Commits
Author SHA1 Message Date
sam 5baef8805d Merge branch 'main' into fix/1862-more-menu
ci/woodpecker/pr/quality Pipeline was canceled
Quality / check (pull_request) Failing after 5m19s
2026-11-12 13:42:04 +00:00
sam 82ca9613c7 fix(chat): anchor the More popover outside the tooltip chain (#1862)
Quality / check (pull_request) Canceled after 0s
ci/woodpecker/pr/quality Pipeline was canceled
Nested inside TooltipTrigger as-child, PopoverTrigger's PopperAnchor ref
resolved to a component object instead of the button, so the popover never
became positioned and its content stayed parked off-screen at
translate(0, -200%): the menu opened in state only, invisible to the user.
Wrapping the tooltip in an explicit PopoverAnchor makes the anchor the real
button element, so the menu renders beside it. The tooltip (accessible name
More), the menu items, and the rename/branch dialog are unchanged.

Adds ui/test/chat-more-menu.test.ts, a browser behaviour check (vite dev
server + headless Chrome over CDP, API mocked in-page) that fails on the old
nesting with the menu at (0, -526) and passes with it in the viewport; it
skips when no Chrome binary is installed.
2026-11-13 00:40:53 +11:00