fix: add header offset to IntersectionObserver
This commit is contained in:
parent
b63cf6779d
commit
c64a081508
3 changed files with 24 additions and 17 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue