fix: minor UI improvements for end of month design (#22837)

* minor UI improvements

* revert classname changes

* remove not needed code

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina Wollendorfer
2025-08-04 03:02:42 +00:00
committed by GitHub
co-authored by CarinaWolli
parent b7e11dc112
commit 852eb346ed
+4 -2
View File
@@ -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}
/>
)}