Repository navigation
fix(app): keep the quote comment popover above browser panes - #61012
opencode-agent[bot] wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
The change looks sound, but I couldn't verify it: the bug needs the Desktop app's native browser pane, which I can't run here. I read through the path: the quote comment editor and both quote toolbars mount through a plain Portal into <body>. That fires the embed's existing portals watcher, which re-runs the overlap check, and the check now matches [data-floating]. Nothing else in the repo uses data-floating, so the selector won't catch other elements. Type checks pass (tsc -b in packages/app and packages/gui-plugins).
Could you add a quick before/after screenshot or a short video from a Desktop build showing the quote comment popover over a browser pane?
Public API: unchanged (data-floating is an internal DOM attribute).
No blocking concerns.
In Desktop, the quote comment popover (and the selection quote toolbars) could end up behind a browser pane on the right.
The browser pane is a native view that always paints above the DOM, so
z-indexcan't help. Embeds already handle this by swapping the native view for a still while floating content overlaps it, but the overlap check only looks for Kobalte[data-popper-positioner]elements. The quote comment editor and the timeline and terminal quote toolbars position themselves with a plainPortal, so the check missed them.This change adds a
data-floatingmarker to those three surfaces and includes[data-floating]in the embed overlap check. The popover now sits over a still of the page instead of disappearing behind it.Verification:
bun run typecheckinpackages/appandpackages/gui-plugins, andbun run lint:changed. Not yet exercised in a running Desktop build.Requested by: @iamdavidhill (David via Slack)