diff --git a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputDropDownScreen.kt b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputDropDownScreen.kt index af42c36a4..8ac4cf676 100644 --- a/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputDropDownScreen.kt +++ b/common/src/commonMain/kotlin/org/hisp/dhis/common/screens/InputDropDownScreen.kt @@ -12,6 +12,7 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier +import org.hisp.dhis.common.screens.previews.lorem import org.hisp.dhis.mobile.ui.designsystem.component.ColumnComponentContainer import org.hisp.dhis.mobile.ui.designsystem.component.InputDropDown import org.hisp.dhis.mobile.ui.designsystem.component.InputShellState @@ -23,7 +24,7 @@ import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor @Composable fun InputDropDownScreen() { ColumnComponentContainer { - val options = listOf("Option 1", "Option 2", "Option 3", "Option 4", "Option 5", "Option 6", "Option 7") + val options = listOf(lorem, "Option 2", "Option 3", "Option 4", "Option 5", "Option 6", "Option 7") var expanded by rememberSaveable { mutableStateOf(false) } Title("Input Dropdown", textColor = TextColor.OnSurfaceVariant) diff --git a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDropDown.kt b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDropDown.kt index 417c2c356..a2d63b3d9 100644 --- a/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDropDown.kt +++ b/designsystem/src/commonMain/kotlin/org/hisp/dhis/mobile/ui/designsystem/component/InputDropDown.kt @@ -17,6 +17,7 @@ import androidx.compose.ui.focus.FocusRequester import androidx.compose.ui.focus.focusRequester import androidx.compose.ui.focus.onFocusChanged import androidx.compose.ui.platform.testTag +import androidx.compose.ui.text.style.TextOverflow import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor /** @@ -84,6 +85,8 @@ fun InputDropDown( TextColor.OnDisabledSurface }, ), + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) Box( modifier = Modifier