diff --git a/src/components/Widgets/TOC.astro b/src/components/Widgets/TOC.astro index c9ce93c..4f36b2b 100644 --- a/src/components/Widgets/TOC.astro +++ b/src/components/Widgets/TOC.astro @@ -201,7 +201,7 @@ function setupTOCHighlight() { // Create the intersection observer const headingObserver = new IntersectionObserver(intersectionCallback, { - rootMargin: '-5% 0% -85% 0%', + rootMargin: '0% 0% -66% 0%', threshold: [0.4], })