summaryrefslogtreecommitdiff
path: root/makima/frontend/src/routes/document-directives.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/routes/document-directives.tsx')
-rw-r--r--makima/frontend/src/routes/document-directives.tsx16
1 files changed, 10 insertions, 6 deletions
diff --git a/makima/frontend/src/routes/document-directives.tsx b/makima/frontend/src/routes/document-directives.tsx
index 7b0a89b..a3ea969 100644
--- a/makima/frontend/src/routes/document-directives.tsx
+++ b/makima/frontend/src/routes/document-directives.tsx
@@ -1530,13 +1530,17 @@ export default function DocumentDirectivesPage() {
: null;
return (
- <div className="relative z-10 min-h-screen flex flex-col bg-[#0a1628]">
+ // h-screen + overflow-hidden so the page itself never scrolls; the
+ // sidebar and editor pane each manage their own scroll via flex-1
+ // children with overflow-y-auto. Previously we set
+ // height: calc(100vh - 80px) on <main>, which assumed an 80px masthead
+ // and quietly clipped content when the masthead was taller (or pushed
+ // the page below the viewport on shorter screens, which made the
+ // whole page scroll instead of the sidebar/editor independently).
+ <div className="relative z-10 h-screen flex flex-col bg-[#0a1628] overflow-hidden">
<Masthead showNav />
- <main
- className="flex-1 flex overflow-hidden"
- style={{ height: "calc(100vh - 80px)" }}
- >
- {/* Left: file-tree sidebar */}
+ <main className="flex-1 flex min-h-0 overflow-hidden">
+ {/* Left: file-tree sidebar — independent scroll. */}
<div className="w-[260px] shrink-0 border-r border-dashed border-[rgba(117,170,252,0.2)] overflow-hidden flex flex-col bg-[#091428]">
<DocumentSidebar
directives={directives}