Skip to content

Commit 852eb34

Browse files
CarinaWolliCarinaWolli
andauthored
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>
1 parent b7e11dc commit 852eb34

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/features/calendars/DatePicker.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ const Days = ({
194194
const getPadding = (day: number) => (browsingDate.set("date", day).day() - weekStart + 7) % 7;
195195
const totalDays = daysInMonth(browsingDate);
196196

197+
const showNextMonthDays = isSecondWeekOver && !isCompact;
198+
197199
// Only apply end-of-month logic for main monthly view (not compact sidebar)
198-
if (isSecondWeekOver && !isCompact) {
200+
if (showNextMonthDays) {
199201
const startDay = 8;
200202
const pad = getPadding(startDay);
201203
days = Array(pad).fill(null);
@@ -337,7 +339,7 @@ const Days = ({
337339
active={isActive(day)}
338340
away={away}
339341
emoji={emoji}
340-
showMonthTooltip={isSecondWeekOver && !isCompact}
342+
showMonthTooltip={showNextMonthDays && !disabled && day.month() !== browsingDate.month()}
341343
isFirstDayOfNextMonth={isFirstDayOfNextMonth}
342344
/>
343345
)}

0 commit comments

Comments
 (0)