refactor: replace pixel-based TOC sidebar width and sticky offset with flexible values

This commit is contained in:
kbot
2026-06-03 21:55:55 -05:00
parent f8383fb471
commit 3aa101812e
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ export function TableOfContents() {
if (headings.length === 0) return null;
return (
<nav aria-label="Table of contents" className="lg:sticky lg:top-[var(--header-height)]">
<nav aria-label="Table of contents" className="lg:sticky lg:top-20">
<h4 className="font-sans text-xs font-semibold uppercase tracking-wider text-ink-soft mb-3">
On this page
</h4>