From 89563b208c9812ce6ab1b2cf17663b0ffda83e05 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Sun, 22 Sep 2024 16:35:05 +0200 Subject: [PATCH] a --- .../nextra-theme-docs/src/mdx-components/heading-anchor.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nextra-theme-docs/src/mdx-components/heading-anchor.tsx b/packages/nextra-theme-docs/src/mdx-components/heading-anchor.tsx index 5eebc95cbc..b7d4e699ed 100644 --- a/packages/nextra-theme-docs/src/mdx-components/heading-anchor.tsx +++ b/packages/nextra-theme-docs/src/mdx-components/heading-anchor.tsx @@ -19,8 +19,7 @@ const observer: IntersectionObserver = : new IntersectionObserver(cb, { rootMargin: `-${getComputedStyle(document.body).getPropertyValue( '--nextra-navbar-height' - )} 0% -80%`, - threshold: [0, 1] + )} 0% -80%` }) export const HeadingAnchor: FC<{ id: string }> = ({ id }) => {