Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table of contents in sidebar feels wonky #1908

Closed
rparrett opened this issue Dec 5, 2024 · 0 comments · Fixed by #1909
Closed

Table of contents in sidebar feels wonky #1908

rparrett opened this issue Dec 5, 2024 · 0 comments · Fixed by #1909

Comments

@rparrett
Copy link
Contributor

rparrett commented Dec 5, 2024

I saw that mentioned in Discord… but no idea if there is an GH issue.

I just checked, and it's working fine, but since we have a fixed header it feels weird (?). It probably gets fixed if we change the top part in rootMargin in the intersection observer. Probably needs the header height and that's it, which can be accessed with getComputedStyle(document.body).getPropertyValue('--header-height').

wonky-sidebar.mp4

Originally posted by @doup in #1907 (comment)

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 a pull request may close this issue.

1 participant