fix: add header offset to IntersectionObserver

This commit is contained in:
enscribe 2024-09-18 23:18:46 -07:00
parent b63cf6779d
commit c64a081508
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
3 changed files with 24 additions and 17 deletions

View file

@ -10,7 +10,7 @@ const { heading } = Astro.props
>
<Link
href={'#' + heading.slug}
class="toc-link transition-colors duration-200"
class="toc-link transition-colors duration-200 hover:underline"
>
{heading.text}
</Link>