diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt index 97f7a13..45ba90b 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/WeekPager.kt @@ -78,7 +78,8 @@ fun WeekPager( val date = weekMonday.plus(DatePeriod(days = dayOffset)) DayCell( date = date, - isCurrentMonth = true, + isCurrentMonth = date.month == selectedDate.month + && date.year == selectedDate.year, isSelected = date == selectedDate, isToday = date == today, onClick = { onDateClick(date) },