From 70280e1194aedfd33fd597e2b617386a8a40f971 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Thu, 24 Oct 2024 15:37:55 +0200 Subject: [PATCH] minor refactor --- src/Layout.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Layout.tsx b/src/Layout.tsx index 9e28525..11de523 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -28,13 +28,13 @@ const mainViewMax = mainViewWidthMax + mainViewPadding * 2 const containerQuerySpacing = mainViewMax + navWidthMax + blockMargin const containerQueryMobile = mainViewMax + navWidthMin -// Avoid blank whitespace at the bottom of the page with almost no content -const blankBuster1: React.CSSProperties = { +// Avoid whitespace at the bottom of pages with almost no content +const whitespaceBuster1: React.CSSProperties = { minHeight: '100vh', display: 'flex', flexDirection: 'column', } -const blankBuster2: React.CSSProperties = { +const whitespaceBuster2: React.CSSProperties = { flexGrow: 1, } @@ -64,7 +64,7 @@ function Layout({ children }: { children: React.ReactNode }) { // We don't add `container` to `body` nor `html` beacuse in Firefox it breaks the `position: fixed` of // https://stackoverflow.com/questions/74601420/css-container-inline-size-and-fixed-child containerType: 'inline-size', - ...blankBuster1, + ...whitespaceBuster1, }} > {content} @@ -80,7 +80,7 @@ function LayoutDocsPage({ children }: { children: React.ReactNode }) { <> -
+
{children}