Skip to content

Fix clipping of line hover tooltip in interactive graphics - #100

Merged
seveibar merged 1 commit into
mainfrom
codex/fix-tooltip-cut-off-effect
Feb 19, 2026
Merged

Fix clipping of line hover tooltip in interactive graphics#100
seveibar merged 1 commit into
mainfrom
codex/fix-tooltip-cut-off-effect

Conversation

@seveibar

Copy link
Copy Markdown
Contributor

Motivation

  • Tooltips anchored to lines were being clipped by the per-line SVG overlay bounds when the label extended beyond the computed line box, so the tooltip needs to be allowed to render outside that local SVG.

Description

  • Set overflow: "visible" on the per-line SVG container in site/components/InteractiveGraphics/Line.tsx so the foreignObject tooltip can extend beyond the SVG's local bounds.

Testing

  • Ran bunx tsc --noEmit which succeeded, bun test tests/SVGRenderer.test.tsx which passed (1 test), and bun run format which formatted files, and attempted a Playwright screenshot which failed due to Chromium crashing with a SIGSEGV in this environment.

Codex Task

@vercel

vercel Bot commented Feb 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graphics-debug Ready Ready Preview, Comment Feb 19, 2026 0:27am

Request Review

@seveibar
seveibar merged commit 5f4b95b into main Feb 19, 2026
4 checks passed
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants