From b63cf6779d803e31206416a8340251544b2859b7 Mon Sep 17 00:00:00 2001 From: enscribe Date: Wed, 18 Sep 2024 23:13:55 -0700 Subject: [PATCH] fix: `font-weight` layoutshift in ToC --- src/components/TableOfContents.astro | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index cc6f850..6f0b100 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -82,7 +82,6 @@ function buildToc(headings: Heading[]): Heading[] { if (!link) return const addRemove = section.intersectionRatio > 0 ? 'add' : 'remove' - link.classList[addRemove]('font-semibold') link.classList[addRemove]('text-foreground') }) })