diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt index 865c739..cc01ab8 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt @@ -21,8 +21,6 @@ private val uiSettings = DI.uiSettings private val labelsWidth = 60.dp -private val selectBoxesWidth = 154.dp - private val horizontalPadding = 6.dp @Composable @@ -56,7 +54,7 @@ fun FilterBar() { selectedItem = transactionsGrouping, onSelectedItemChanged = { grouping -> uiSettings.transactionsGrouping.value = grouping }, getItemDisplayText = { grouping -> Internationalization.translate(grouping) }, - modifier = Modifier.width(selectBoxesWidth).padding(horizontal = horizontalPadding) + modifier = Modifier.width(190.dp).padding(horizontal = horizontalPadding) ) } @@ -79,7 +77,7 @@ fun FilterBar() { selectedItem = transactionsFilter.value.month?.let { months[it - 1] }, onSelectedItemChanged = { month -> transactionsFilter.value.month = (if (month == null) null else months.indexOf(month) + 1) }, getItemDisplayText = { month -> if (month == null) "" else month }, - modifier = Modifier.width(selectBoxesWidth) + modifier = Modifier.width(154.dp) ) } }