From 45250f6f3eb46ebbde2773f9ef3e6ecd6596941b Mon Sep 17 00:00:00 2001 From: Jeroen Reumkens Date: Thu, 4 May 2023 12:32:22 +0100 Subject: [PATCH] CAL-1558: Fixed responsiveness of booker for small calendar layout (#8660) * CAL-1558: Fixed responsiveness of booker for small calendar layout * Remove commented code --- packages/features/bookings/Booker/Booker.tsx | 16 +++++++++++----- packages/features/bookings/Booker/config.ts | 5 +++-- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index d9089e03c8..e4145236b0 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -121,13 +121,19 @@ const BookerComponent = ({ username, eventSlug, month, rescheduleBooking }: Book
diff --git a/packages/features/bookings/Booker/config.ts b/packages/features/bookings/Booker/config.ts index 595013db28..f77fd0ecbe 100644 --- a/packages/features/bookings/Booker/config.ts +++ b/packages/features/bookings/Booker/config.ts @@ -58,9 +58,10 @@ export const resizeAnimationConfig: ResizeAnimationConfig = { gridTemplateColumns: "var(--booker-meta-width) var(--booker-main-width)", }, selecting_time: { - width: "calc(var(--booker-meta-width) + var(--booker-main-width) + var(--booker-timeslots-width))", + width: "100%", + maxWidth: "calc(var(--booker-meta-width) + var(--booker-main-width) + var(--booker-timeslots-width))", gridTemplateAreas: `"meta main timeslots"`, - gridTemplateColumns: "var(--booker-meta-width) var(--booker-main-width) var(--booker-timeslots-width)", + gridTemplateColumns: "var(--booker-meta-width) 1fr var(--booker-timeslots-width)", }, }, large_calendar: {