mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
style: fix h1 styling in mobile toc
This commit is contained in:
parent
51556c3336
commit
57a10b9be8
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue