Skip to content

fix(app): keep the quote comment popover above browser panes - #61012

Open
opencode-agent[bot] wants to merge 1 commit into
devfrom
fix/comment-popover-zindex
Open

opencode-agent[bot] wants to merge 1 commit into
devfrom
fix/comment-popover-zindex

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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-index can'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 plain Portal, so the check missed them.

This change adds a data-floating marker 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 typecheck in packages/app and packages/gui-plugins, and bun run lint:changed. Not yet exercised in a running Desktop build.

Requested by: @iamdavidhill (David via Slack)

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant