File tree Expand file tree Collapse file tree
packages/features/calendars Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments