diff --git a/app/layout-content.tsx b/app/layout-content.tsx index 74bfb25..f279464 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -41,7 +41,9 @@ export default function LayoutContent({ children }: { children: React.ReactNode } const showOfflineBar = Boolean(auth.user && !isOnline); - const barHeightRem = '2.5rem'; + const barHeightRem = 2.5; + const headerHeightRem = 6; + const mainTopPaddingRem = barHeightRem + headerHeightRem; return ( <> @@ -59,9 +61,12 @@ export default function LayoutContent({ children }: { children: React.ReactNode showFaq={false} showSecurity={false} showPricing={true} - topOffset={showOfflineBar ? barHeightRem : undefined} + topOffset={showOfflineBar ? `${barHeightRem}rem` : undefined} /> -
+
{children}