From 57a10b9be84fb6fe936ab6b3a939680340b399ba Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 7 Apr 2024 00:08:09 -0700 Subject: [PATCH] style: fix h1 styling in mobile toc --- src/lib/components/Toc/MobileToc.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Toc/MobileToc.svelte b/src/lib/components/Toc/MobileToc.svelte index 06466d6..cf6d7d4 100644 --- a/src/lib/components/Toc/MobileToc.svelte +++ b/src/lib/components/Toc/MobileToc.svelte @@ -6,7 +6,7 @@ export let tocStore: TocStore; const calcTextClasses = (el: HTMLElement) => { - if (el.tagName === 'H1') return 'font-medium'; + if (el.tagName === 'H1') return 'text-lg font-medium'; if (el.tagName === 'H2') return 'text-lg'; return 'text-sm text-muted-foreground'; };