diff --git a/src/lib/components/Toc/MobileToc.svelte b/src/lib/components/Toc/MobileToc.svelte index 5bc0ceb..06466d6 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 'text-xl font-medium'; + if (el.tagName === 'H1') return 'font-medium'; if (el.tagName === 'H2') return 'text-lg'; return 'text-sm text-muted-foreground'; }; diff --git a/src/lib/components/Toc/StickyToc.svelte b/src/lib/components/Toc/StickyToc.svelte index 10e636e..c37f8a1 100644 --- a/src/lib/components/Toc/StickyToc.svelte +++ b/src/lib/components/Toc/StickyToc.svelte @@ -5,7 +5,7 @@ export let tocStore: TocStore; const calcTextClasses = (el: HTMLElement) => { - if (el.tagName === 'H1') return 'text-lg xl:text-xl font-medium'; + if (el.tagName === 'H1') return 'text-md xl:text-lg font-medium'; if (el.tagName === 'H2') return 'text-md xl:text-lg'; if (el.id === 'end-marker') return 'text-lg xl:text-xl'; return 'text-sm text-muted-foreground';