refactor: replace pixel-based TOC sidebar width and sticky offset with flexible values
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user