Skip to content

Scheduling infrastructure for absolutely everyone.

Tweaks to booker grid sizing to prevent buttons from overflow booker wrapper in Safari (#9620)

Jeroen Reumkens648dd862f59d
diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx
index 02e62f08abe..03cd2910853 100644
--- a/packages/features/bookings/Booker/Booker.tsx
+++ b/packages/features/bookings/Booker/Booker.tsx
@@ -139,12 +139,12 @@ const BookerComponent = ({
<StickyOnDesktop
key="meta"
className={classNames(
- "relative z-10 flex",
+ "relative z-10 flex [grid-area:meta]",
layout !== BookerLayouts.MONTH_VIEW && "sm:min-h-screen"
)}>
<BookerSection
area="meta"
- className="max-w-screen flex w-full flex-col md:w-[var(--booker-meta-width)]">
+ className="max-w-screen flex h-full w-full flex-col md:w-[var(--booker-meta-width)]">
<EventMeta />
{layout !== BookerLayouts.MONTH_VIEW &&
!(layout === "mobile" && bookerState === "booking") && (
diff --git a/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx b/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
index 19ac44f9b9a..8ce188d154d 100644
--- a/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
+++ b/packages/features/bookings/Booker/components/AvailableTimeSlots.tsx
@@ -73,7 +73,7 @@ export const AvailableTimeSlots = ({ extraDays, limitHeight, seatsPerTimeslot }:
<div
className={classNames(
limitHeight && "flex-grow md:h-[400px]",
- !limitHeight && "flex w-full flex-row gap-4"
+ !limitHeight && "flex h-full w-full flex-row gap-4"
)}>
{schedule.isLoading
? // Shows exact amount of days as skeleton.
diff --git a/packages/features/bookings/Booker/config.ts b/packages/features/bookings/Booker/config.ts
index 9c19bdd313f..4c78e0ab20b 100644
--- a/packages/features/bookings/Booker/config.ts
+++ b/packages/features/bookings/Booker/config.ts
@@ -70,7 +70,7 @@ export const resizeAnimationConfig: ResizeAnimationConfig = {
"meta main main"
`,
gridTemplateColumns: "var(--booker-meta-width) var(--booker-main-width)",
- gridTemplateRows: "auto",
+ gridTemplateRows: "1fr 0fr",
},
selecting_time: {
width: "calc(var(--booker-meta-width) + var(--booker-main-width) + var(--booker-timeslots-width))",
@@ -81,7 +81,7 @@ export const resizeAnimationConfig: ResizeAnimationConfig = {
"meta main timeslots"
`,
gridTemplateColumns: "var(--booker-meta-width) 1fr var(--booker-timeslots-width)",
- gridTemplateRows: "auto",
+ gridTemplateRows: "1fr 0fr",
},
},
week_view: {