fix: use CSS variable for TOC sticky offset instead of hardcoded pixels
This commit is contained in:
@@ -58,7 +58,7 @@ export function TableOfContents() {
|
||||
if (headings.length === 0) return null;
|
||||
|
||||
return (
|
||||
<nav className="lg:sticky lg:top-[72px]">
|
||||
<nav className="lg:sticky lg:top-[var(--header-height)]">
|
||||
<h4 className="font-sans text-xs font-semibold uppercase tracking-wider text-ink-soft mb-3">
|
||||
On this page
|
||||
</h4>
|
||||
|
||||
Reference in New Issue
Block a user