diff --git a/kmp-calendar/src/commonMain/kotlin/io/github/ronjunevaldoz/kmp_calendar/CalendarDayItem2.kt b/kmp-calendar/src/commonMain/kotlin/io/github/ronjunevaldoz/kmp_calendar/CalendarDayItem2.kt index b70b4e2..2604975 100644 --- a/kmp-calendar/src/commonMain/kotlin/io/github/ronjunevaldoz/kmp_calendar/CalendarDayItem2.kt +++ b/kmp-calendar/src/commonMain/kotlin/io/github/ronjunevaldoz/kmp_calendar/CalendarDayItem2.kt @@ -3,6 +3,7 @@ package io.github.ronjunevaldoz.kmp_calendar import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape @@ -60,7 +61,7 @@ fun DefaultCalendarDayItem( if (isDaySelected) { Box( modifier = Modifier - .size(30.dp) + .fillMaxSize() .background(primaryColor, CircleShape) ) } @@ -76,7 +77,7 @@ fun DefaultCalendarDayItem( if (!sameRange) { Box( modifier = Modifier - .size(30.dp) + .fillMaxSize() .background( primaryColor.copy(0.5f), rangeShape @@ -86,7 +87,7 @@ fun DefaultCalendarDayItem( if (isPrimary) { Box( modifier = Modifier - .size(30.dp) + .fillMaxSize() .background( primaryColor, CircleShape