diff --git a/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt b/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt index 06b7e1ab8..15d0c463a 100644 --- a/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt +++ b/feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt @@ -136,6 +136,10 @@ fun HomeRoute( viewModel.getHomeTodayInternList() } + LaunchedEffect(key1 = true) { + viewModel.getFilteringInfo() + } + when (homeTodayState) { is UiState.Success -> { homeTodayInternList.value = diff --git a/feature/src/main/java/com/terning/feature/home/home/component/HomeRecommendInternDialog.kt b/feature/src/main/java/com/terning/feature/home/home/component/HomeRecommendInternDialog.kt index d4cdbd71f..1418c2e54 100644 --- a/feature/src/main/java/com/terning/feature/home/home/component/HomeRecommendInternDialog.kt +++ b/feature/src/main/java/com/terning/feature/home/home/component/HomeRecommendInternDialog.kt @@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.wrapContentSize import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.Icon @@ -68,13 +69,13 @@ fun HomeRecommendInternDialog( Box( modifier = Modifier - .fillMaxSize() + .wrapContentSize() .padding(top = 32.dp), contentAlignment = Alignment.TopCenter ) { Column( modifier = Modifier - .fillMaxSize() + .wrapContentSize() .padding(horizontal = 11.dp), horizontalAlignment = Alignment.CenterHorizontally ) { @@ -207,7 +208,6 @@ fun HomeRecommendInternDialog( } } } - Spacer(modifier = Modifier.weight(1f)) Box( modifier = Modifier.fillMaxWidth(), contentAlignment = Alignment.BottomCenter