Centered small_calendar view vertically (#8712)
This commit is contained in:
parent
ab50067194
commit
d7051c4a3f
|
@ -15,7 +15,7 @@ type PageProps = inferSSRProps<typeof getServerSideProps>;
|
|||
|
||||
export default function Type({ slug, user, booking, away }: PageProps) {
|
||||
return (
|
||||
<main className="flex justify-center">
|
||||
<main className="flex h-full min-h-[100dvh] items-center justify-center">
|
||||
<Booker username={user} eventSlug={slug} rescheduleBooking={booking} isAway={away} />
|
||||
</main>
|
||||
);
|
||||
|
|
|
@ -14,7 +14,7 @@ type PageProps = inferSSRProps<typeof getServerSideProps>;
|
|||
|
||||
export default function Type({ slug, user, booking, away }: PageProps) {
|
||||
return (
|
||||
<main className="flex justify-center">
|
||||
<main className="flex h-full min-h-[100dvh] items-center justify-center">
|
||||
<Booker username={user} eventSlug={slug} rescheduleBooking={booking} isAway={away} />
|
||||
</main>
|
||||
);
|
||||
|
|
|
@ -135,7 +135,7 @@ const BookerComponent = ({ username, eventSlug, month, rescheduleBooking }: Book
|
|||
// Sizes for fullscreen layouts:
|
||||
layout !== "small_calendar" && "[--booker-meta-width:340px] lg:[--booker-meta-width:424px]",
|
||||
// Other styles
|
||||
layout === "small_calendar" && "border-subtle mt-20 min-h-[450px] rounded-md border",
|
||||
layout === "small_calendar" && "border-subtle min-h-[450px] rounded-md border",
|
||||
layout !== "small_calendar" && "h-auto min-h-screen w-screen",
|
||||
"transition-[width,max-width] duration-300"
|
||||
)}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user