Skip to content

fix(sidecar): now properly highlighting selected heading on click#395

Merged
mitchellh merged 1 commit intoghostty-org:mainfrom
matthew-hre:fix/sidecar-highlight-fix
Dec 2, 2025
Merged

fix(sidecar): now properly highlighting selected heading on click#395
mitchellh merged 1 commit intoghostty-org:mainfrom
matthew-hre:fix/sidecar-highlight-fix

Conversation

@matthew-hre
Copy link
Contributor

Closes #390

Based on the issue, it looks as though the headers are cut off at the top, which means that the IntersectionObserver was detecting the wrong heading, as the one clicked was "out of view"

A little bit of extra padding on the tops of the headings should do the trick!

Before:
Screencast_20251114_162044.webm

After:
Screencast_20251114_162148.webm

@vercel
Copy link

vercel bot commented Nov 14, 2025

@matthew-hre is attempting to deploy a commit to the Ghostty Team on Vercel.

A member of the Team first needs to authorize it.

@mitchellh mitchellh merged commit d312f80 into ghostty-org:main Dec 2, 2025
2 of 3 checks passed
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.

[ BUG ] Reference links select below clicked ones

2 participants