Skip to content

fix(terminal): flush URL hover tooltip to pane bottom-left corner - #10351

Merged
nwparker merged 1 commit into
mainfrom
nwparker/terminal-url-hover-flush-corner
Jul 24, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/terminal-url-hover-flush-corner

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • Move terminal link URL hover styles into .pane-link-tooltip in terminal.css so corner offsets are not reintroduced via inline styles.
  • Keep the tooltip on the pane (not the padded xterm host) at bottom: 0; left: 0; margin: 0.
  • Square the bottom-left chrome (border-radius: 0 4px 0 0, no bottom/left border) so the hover preview sits flush against the pane corner (Ghostty-style).

Test plan

  • pnpm vitest run --config config/vitest.config.ts src/renderer/src/lib/pane-manager/pane-dom-creation.test.ts
  • CSS geometry fixture: tooltipLeftFromPane=0, tooltipBottomFromPane=0 with exaggerated 24px content padding
  • Manually hover a terminal URL and confirm the preview is flush bottom-left (no margin gap)

Move link-tooltip chrome into terminal.css so offsets cannot drift via
inline styles, and square the bottom-left corner so the hover preview
sits flush against the pane edge (Ghostty-style).
@nwparker

Copy link
Copy Markdown
Contributor Author

Attachments

tooltip-corner-proof.png
tooltip-corner-proof.png

@nwparker
nwparker merged commit 1367094 into main Jul 24, 2026
4 of 6 checks passed
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 05d2ebaa-091e-4dcc-8583-fbe00371e8de

📥 Commits

Reviewing files that changed from the base of the PR and between 981653f and 55c44cb.

📒 Files selected for processing (3)
  • src/renderer/src/assets/terminal.css
  • src/renderer/src/lib/pane-manager/pane-dom-creation.test.ts
  • src/renderer/src/lib/pane-manager/pane-dom-creation.ts

📝 Walkthrough

Walkthrough

Pane link tooltip presentation was moved from inline styles to the .pane-link-tooltip stylesheet rule. Tooltip initialization now applies CSS classes and only sets display: none, while tests verify the class, hidden state, and absence of inline positioning offsets.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ablyai#10351)

Move link-tooltip chrome into terminal.css so offsets cannot drift via
inline styles, and square the bottom-left corner so the hover preview
sits flush against the pane edge (Ghostty-style).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant