Skip to content

Commit cdf837f

Browse files
committed
fix: sidebar positioning
1 parent 0d67ae1 commit cdf837f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,15 @@ Overrides for Fumadocs content. Everything after prose is MDX generated content
2626

2727
#nd-sidebar {
2828
--fd-sidebar-top: var(--header-height) !important;
29+
position: sticky !important;
30+
height: calc(100vh - var(--header-height));
2931
}
32+
33+
#nd-docs-layout {
34+
flex-direction: row !important;
35+
padding-inline-start: 0 !important;
36+
}
37+
38+
#nd-toc {
39+
top: calc(var(--header-height) + 1rem) !important;
40+
}

packages/component-library/src/AppShell/index.module.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
}
1515

1616
.body {
17-
background: black;
1817
-webkit-font-smoothing: antialiased;
1918
-moz-osx-font-smoothing: grayscale;
2019
scroll-behavior: smooth;
@@ -33,9 +32,7 @@
3332
background: theme.color("background", "primary");
3433
border-top-left-radius: calc(var(--offset) * theme.border-radius("xl"));
3534
border-top-right-radius: calc(var(--offset) * theme.border-radius("xl"));
36-
overflow: hidden auto;
37-
transform: scale(calc(100% - (var(--offset) * 5%)));
38-
height: 100dvh;
35+
min-height: 100dvh;
3936
scrollbar-gutter: stable;
4037

4138
.header {

0 commit comments

Comments
 (0)