@ticketboothapp/booking 1.2.32 → 1.2.34
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;
|
|
@@ -337,19 +344,6 @@
|
|
|
337
344
|
padding-bottom: 0; /* No bottom padding - eliminates gap below calendar cells */
|
|
338
345
|
}
|
|
339
346
|
|
|
340
|
-
/* Admin capacity view: enforce a wider minimum per day; scroll horizontally if the container is narrow */
|
|
341
|
-
@media (min-width: 640px) {
|
|
342
|
-
.calendarGridInnerAdminWide {
|
|
343
|
-
overflow-x: auto;
|
|
344
|
-
-webkit-overflow-scrolling: touch;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.calendarHeaderRowAdminWide,
|
|
348
|
-
.calendarDaysGridAdminWide {
|
|
349
|
-
grid-template-columns: repeat(7, minmax(6.75rem, 1fr));
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
347
|
.calendarHeaderRow {
|
|
354
348
|
display: grid;
|
|
355
349
|
grid-template-columns: repeat(7, 1fr);
|
|
@@ -376,6 +370,19 @@
|
|
|
376
370
|
grid-template-columns: repeat(7, 1fr);
|
|
377
371
|
}
|
|
378
372
|
|
|
373
|
+
/* Admin capacity: wider min column width — must come after base .calendarHeaderRow / .calendarDaysGrid
|
|
374
|
+
or those rules override equal-specificity .calendar*AdminWide (cascade bug). */
|
|
375
|
+
@media (min-width: 640px) {
|
|
376
|
+
.calendarGridInnerAdminWide {
|
|
377
|
+
overflow-x: visible;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.calendarHeaderRow.calendarHeaderRowAdminWide,
|
|
381
|
+
.calendarDaysGrid.calendarDaysGridAdminWide {
|
|
382
|
+
grid-template-columns: repeat(7, minmax(6.1rem, 1fr));
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
379
386
|
/* Desktop: don't stretch every cell to the tallest day in the row (was huge empty space). */
|
|
380
387
|
@media (min-width: 640px) {
|
|
381
388
|
.calendarDaysGrid {
|
|
@@ -408,10 +415,10 @@
|
|
|
408
415
|
/* Admin (showCapacity): extra line under each time pill — taller cells on sm+ only */
|
|
409
416
|
@media (min-width: 640px) {
|
|
410
417
|
.calendar .calendarDayCell.calendarDayCellWithAdminCapacity {
|
|
411
|
-
min-height: 6.
|
|
418
|
+
min-height: 6.9rem;
|
|
412
419
|
}
|
|
413
420
|
.calendar .calendarDayCell.calendarDayCellWithAdminCapacity.calendarDayCellWithAdminCapacityTall {
|
|
414
|
-
min-height:
|
|
421
|
+
min-height: 8rem;
|
|
415
422
|
}
|
|
416
423
|
}
|
|
417
424
|
|
|
@@ -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
|