Added property fixedHeight
This commit is contained in:
@@ -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 />
|
||||||
|
|||||||
Reference in New Issue
Block a user