From 1839ea267849bb42bf91fdbf75c50845e0de42aa Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Wed, 27 Aug 2025 11:30:22 +0200 Subject: [PATCH] Fix content min-height with sections (#3597) --- .changeset/popular-pots-move.md | 5 +++++ packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/popular-pots-move.md diff --git a/.changeset/popular-pots-move.md b/.changeset/popular-pots-move.md new file mode 100644 index 000000000..a00ec702c --- /dev/null +++ b/.changeset/popular-pots-move.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix content min-height with sections diff --git a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx index 37e0b188a..216bd5a00 100644 --- a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx +++ b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx @@ -92,7 +92,10 @@ export function SpaceLayout(props: { 'site-width-wide:max-w-full', // Ensure the footer is display below the viewport even if the content is not enough - withFooter && 'min-h-[calc(100vh-64px)]', + withFooter && [ + 'site-header:min-h-[calc(100vh-64px)]', + 'site-header-sections:min-h-[calc(100vh-108px)]', + ], withTopHeader ? null : 'lg:min-h-screen' )} >