Skip to content

Commit 5e2960f

Browse files
committed
fix toc
1 parent ea5ddec commit 5e2960f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/developer-hub/src/components/Root/fumadocs-global-style-overrides.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ Overrides for Fumadocs content. Everything after prose is MDX generated content
3737

3838
#nd-toc {
3939
top: calc(var(--header-height) + 1rem) !important;
40-
}
40+
height: max-content;
41+
position: sticky;
42+
margin-left: calc(-1 * var(--fd-toc-width));
43+
}
44+
45+
#nd-toc > div {
46+
position: relative;
47+
left: var(--fd-toc-width);
48+
}

0 commit comments

Comments
 (0)