From 61ce30c634ad335649680b110574e18293b9dc8d Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 20:52:42 +0200 Subject: [PATCH] Fixed fully showing 'Nicht gruppieren' --- .../kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) ) } }