Added property fixedHeight

This commit is contained in:
2026-09-11 00:02:52 +02:00
parent e073cfcad1
commit b8f338dbd5

View File

@@ -6,11 +6,12 @@ import { Header } from "~/components/header";
export default function Base({ export default function Base({
children, children,
needsLogin = false, needsLogin = false,
}: PropsWithChildren<{ needsLogin?: boolean }>) { fixedHeight = false,
}: PropsWithChildren<{ needsLogin?: boolean, fixedHeight?: boolean }>) {
return ( return (
<> <>
<div className="flex flex-col pt-20 min-h-dvh"> <div className={`flex flex-col pt-20 min-h-dvh ${fixedHeight && "h-dvh"}`}>
<div className="flex flex-col flex-1"> <div className="flex flex-col flex-1 min-h-0">
{needsLogin ? <Guard>{children}</Guard> : children} {needsLogin ? <Guard>{children}</Guard> : children}
</div> </div>
<Footer /> <Footer />