@ticketboothapp/booking 1.2.33 → 1.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -93,6 +93,13 @@
|
|
|
93
93
|
position: relative;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/* Admin capacity mode: let the calendar frame be wider so 7 days fit without horizontal scrolling. */
|
|
97
|
+
@media (min-width: 640px) {
|
|
98
|
+
.calendar.calendarAdminMode {
|
|
99
|
+
max-width: 56rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
96
103
|
|
|
97
104
|
.calendarHeader {
|
|
98
105
|
display: flex;
|
|
@@ -367,13 +374,12 @@
|
|
|
367
374
|
or those rules override equal-specificity .calendar*AdminWide (cascade bug). */
|
|
368
375
|
@media (min-width: 640px) {
|
|
369
376
|
.calendarGridInnerAdminWide {
|
|
370
|
-
overflow-x:
|
|
371
|
-
-webkit-overflow-scrolling: touch;
|
|
377
|
+
overflow-x: visible;
|
|
372
378
|
}
|
|
373
379
|
|
|
374
380
|
.calendarHeaderRow.calendarHeaderRowAdminWide,
|
|
375
381
|
.calendarDaysGrid.calendarDaysGridAdminWide {
|
|
376
|
-
grid-template-columns: repeat(7, minmax(6.
|
|
382
|
+
grid-template-columns: repeat(7, minmax(6.1rem, 1fr));
|
|
377
383
|
}
|
|
378
384
|
}
|
|
379
385
|
|
|
@@ -409,10 +415,10 @@
|
|
|
409
415
|
/* Admin (showCapacity): extra line under each time pill — taller cells on sm+ only */
|
|
410
416
|
@media (min-width: 640px) {
|
|
411
417
|
.calendar .calendarDayCell.calendarDayCellWithAdminCapacity {
|
|
412
|
-
min-height: 6.
|
|
418
|
+
min-height: 6.9rem;
|
|
413
419
|
}
|
|
414
420
|
.calendar .calendarDayCell.calendarDayCellWithAdminCapacity.calendarDayCellWithAdminCapacityTall {
|
|
415
|
-
min-height:
|
|
421
|
+
min-height: 8rem;
|
|
416
422
|
}
|
|
417
423
|
}
|
|
418
424
|
|
|
@@ -197,7 +197,7 @@ const DateCell = memo(function DateCell({
|
|
|
197
197
|
const needsTallerCell = !isMobile && slotCount > 2;
|
|
198
198
|
const mobileNeedsTaller = isMobile && slotCount > 2;
|
|
199
199
|
const adminCapacityTallCells =
|
|
200
|
-
Boolean(showCapacity) && !isMobile &&
|
|
200
|
+
Boolean(showCapacity) && !isMobile && displayMode === 'times';
|
|
201
201
|
const buttonClassName = useMemo(() => cn(
|
|
202
202
|
styles.calendarDayCell,
|
|
203
203
|
isMobile && (mobileNeedsTaller ? styles.calendarDayCellMobileTall : styles.calendarDayCellMobile),
|
|
@@ -892,7 +892,12 @@ export function Calendar({
|
|
|
892
892
|
};
|
|
893
893
|
|
|
894
894
|
return (
|
|
895
|
-
<div
|
|
895
|
+
<div
|
|
896
|
+
className={cn(
|
|
897
|
+
styles.calendar,
|
|
898
|
+
wideAdminCalendarColumns && styles.calendarAdminMode,
|
|
899
|
+
)}
|
|
900
|
+
>
|
|
896
901
|
{/* Calendar Header with Navigation */}
|
|
897
902
|
<div className={styles.calendarHeader}>
|
|
898
903
|
<button
|