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' )} >