Apply new type scale to TOC

This commit is contained in:
2025-11-19 00:33:11 +08:00
parent a225d57e06
commit 79578252df

View File

@@ -92,9 +92,9 @@ export function PostToc() {
if (items.length === 0) return null;
return (
<nav className="not-prose sticky top-20 text-xs text-slate-500 dark:text-slate-400">
<nav className="not-prose sticky top-20 text-slate-500 dark:text-slate-400">
<div className="mb-2 inline-flex items-center gap-2 font-semibold text-slate-700 dark:text-slate-200">
<FontAwesomeIcon icon={faListUl} className="h-3 w-3 text-slate-400" />
<FontAwesomeIcon icon={faListUl} className="h-4 w-4 text-slate-400" />
</div>
<div className="relative pl-4">
@@ -106,7 +106,7 @@ export function PostToc() {
/>
<div
ref={listRef}
className="space-y-1"
className="space-y-1 text-[0.95rem]"
role="list"
>
{items.map((item) => (