From 51556c333642cba051ae80761f3eef0256bf2144 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 7 Apr 2024 00:05:50 -0700 Subject: [PATCH] style: change h1 toc link styling --- src/lib/components/Toc/MobileToc.svelte | 2 +- src/lib/components/Toc/StickyToc.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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';