Scheduling infrastructure for absolutely everyone.
fix: minor UI improvements for end of month design (#22837)
Carina Wollendorfer852eb346ed8a
diff --git a/packages/features/calendars/DatePicker.tsx b/packages/features/calendars/DatePicker.tsxindex 644361d7241..ef91d8f6063 100644--- a/packages/features/calendars/DatePicker.tsx+++ b/packages/features/calendars/DatePicker.tsx@@ -194,8 +194,10 @@ const Days = ({const getPadding = (day: number) => (browsingDate.set("date", day).day() - weekStart + 7) % 7;const totalDays = daysInMonth(browsingDate);+ const showNextMonthDays = isSecondWeekOver && !isCompact;+// Only apply end-of-month logic for main monthly view (not compact sidebar)- if (isSecondWeekOver && !isCompact) {+ if (showNextMonthDays) {const startDay = 8;const pad = getPadding(startDay);days = Array(pad).fill(null);@@ -337,7 +339,7 @@ const Days = ({active={isActive(day)}away={away}emoji={emoji}- showMonthTooltip={isSecondWeekOver && !isCompact}+ showMonthTooltip={showNextMonthDays && !disabled && day.month() !== browsingDate.month()}isFirstDayOfNextMonth={isFirstDayOfNextMonth}/>)}