style: change h1 toc link styling

This commit is contained in:
Youwen Wu 2024-04-07 00:05:50 -07:00
parent 9f2c27d429
commit 51556c3336
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
export let tocStore: TocStore; export let tocStore: TocStore;
const calcTextClasses = (el: HTMLElement) => { 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'; if (el.tagName === 'H2') return 'text-lg';
return 'text-sm text-muted-foreground'; return 'text-sm text-muted-foreground';
}; };

View file

@ -5,7 +5,7 @@
export let tocStore: TocStore; export let tocStore: TocStore;
const calcTextClasses = (el: HTMLElement) => { 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.tagName === 'H2') return 'text-md xl:text-lg';
if (el.id === 'end-marker') return 'text-lg xl:text-xl'; if (el.id === 'end-marker') return 'text-lg xl:text-xl';
return 'text-sm text-muted-foreground'; return 'text-sm text-muted-foreground';