Skip to content

Commit

Permalink
[FIX/#330] 달력 영역 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Jan 12, 2025
1 parent f51f632 commit 02f1a2f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.terning.feature.calendar.calendar.component.group
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -45,7 +46,7 @@ internal fun CalendarWeekGroup(
){
dayModels.forEach { dayModel ->
Column(
modifier = Modifier
modifier = (Modifier.fillMaxHeight().takeIf { !isWeekEnabled } ?: Modifier)
.weight(1f)
.noRippleClickable {
if (!dayModel.isOutDate) {
Expand Down Expand Up @@ -107,7 +108,7 @@ private fun CalendarWeekGroupScrapPreview() {

CalendarWeekGroup(
selectedDay = DayModel(date = LocalDate.now().minusDays(1), weekIndex = 0, isOutDate = false),
isWeekEnabled = false,
isWeekEnabled = true,
dayModels = listOf(
DayModel(date = LocalDate.now().minusDays(3), weekIndex = 0, isOutDate = false),
DayModel(date = LocalDate.now().minusDays(2), weekIndex = 0, isOutDate = false),
Expand Down

0 comments on commit 02f1a2f

Please sign in to comment.