fix: user as student in one org forced to lms, hidden bottom in docs

This commit is contained in:
Rotimi Best
2026-06-22 06:52:35 +01:00
parent f6bd0a5b1a
commit adfedfee4c
3 changed files with 34 additions and 2 deletions
+11
View File
@@ -3,3 +3,14 @@
@import 'fumadocs-ui/css/preset.css';
@source "../../../packages/ui/src/**/*.{ts,tsx}";
/*
* The docs layout is nested inside HomeLayout, whose navbar is `sticky h-14 top-0`
* (3.5rem) but does not expose its height to the docs layout. Fumadocs hardcodes
* `--fd-docs-height: 100dvh`, so the sidebar and TOC end up 3.5rem taller than the
* visible area and their bottom (footer / last nav items) is clipped below the fold.
* Subtract the navbar height so both columns can scroll to the end.
*/
#nd-docs-layout {
--fd-docs-height: calc(100dvh - 3.5rem);
}