Skip to content

Commit 1839ea2

Browse files
authored
Fix content min-height with sections (#3597)
1 parent f08dd29 commit 1839ea2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/popular-pots-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Fix content min-height with sections

packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export function SpaceLayout(props: {
9292
'site-width-wide:max-w-full',
9393

9494
// Ensure the footer is display below the viewport even if the content is not enough
95-
withFooter && 'min-h-[calc(100vh-64px)]',
95+
withFooter && [
96+
'site-header:min-h-[calc(100vh-64px)]',
97+
'site-header-sections:min-h-[calc(100vh-108px)]',
98+
],
9699
withTopHeader ? null : 'lg:min-h-screen'
97100
)}
98101
>

0 commit comments

Comments
 (0)