diff --git a/app/src/main/java/com/preonboarding/moviereview/presentation/main/compose/BoxOfficeItem.kt b/app/src/main/java/com/preonboarding/moviereview/presentation/main/compose/BoxOfficeItem.kt index 6ac97a5..9a49676 100644 --- a/app/src/main/java/com/preonboarding/moviereview/presentation/main/compose/BoxOfficeItem.kt +++ b/app/src/main/java/com/preonboarding/moviereview/presentation/main/compose/BoxOfficeItem.kt @@ -52,7 +52,7 @@ fun BoxOfficeItem( Row( modifier = Modifier .fillMaxWidth() - .height(100.dp) + .height(150.dp) .clickable( interactionSource = interactionSource, indication = null @@ -130,15 +130,21 @@ fun BoxOfficeItem( .fillMaxHeight() .width(150.dp) ) { - Text( - modifier = Modifier, - text = "영화 제목 : ${boxOffice.movieName}" - ) - Text( - modifier = Modifier, - text = "개봉일 : ${boxOffice.movieOpen}" - ) - Text(text = "관객 수 : ${boxOffice.audiAcc}") + if (boxOffice.movieName.isNotEmpty()) { + Text( + modifier = Modifier, + text = "영화 제목 : ${boxOffice.movieName}" + ) + } + if (boxOffice.movieOpen.isNotEmpty() && boxOffice.movieOpen.isNotBlank()) { + Text( + modifier = Modifier, + text = "개봉일 : ${boxOffice.movieOpen}" + ) + } + if (boxOffice.audiAcc.isNotEmpty() && boxOffice.audiAcc.isNotBlank()) { + Text(text = "관객 수 : ${boxOffice.audiAcc}") + } } if (boxOffice.rankInten.toInt() < 0) { @@ -195,7 +201,7 @@ fun DummyBoxOfficeItem( Row( modifier = Modifier .fillMaxWidth() - .height(100.dp), + .height(150.dp), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) {