From e3c17d95479fc86819d6ca9228ce755b07d8e391 Mon Sep 17 00:00:00 2001 From: Scott Cazan Date: Tue, 4 Feb 2025 14:18:11 +0100 Subject: [PATCH] only push scrolling down when Footer is present --- .../src/components/SpaceLayout/SpaceLayout.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx index a214c22d86..067400e0c0 100644 --- a/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx +++ b/packages/gitbook/src/components/SpaceLayout/SpaceLayout.tsx @@ -78,6 +78,11 @@ export async function SpaceLayout(props: { const visitorAuthToken = await getCurrentVisitorToken(); const enabled = await shouldTrackEvents(); + const withFooter = customization.themes.toggeable || + customization.footer.copyright || + customization.footer.logo || + customization.footer.groups?.length; + return ( @@ -174,10 +179,7 @@ export async function SpaceLayout(props: { - {customization.themes.toggeable || - customization.footer.copyright || - customization.footer.logo || - customization.footer.groups?.length ? ( + {withFooter ? (