style: fix h1 styling in mobile toc

This commit is contained in:
Youwen Wu 2024-04-07 00:08:09 -07:00
parent 51556c3336
commit 57a10b9be8
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

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 'font-medium'; if (el.tagName === 'H1') return 'text-lg 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';
}; };