Fixed fully showing 'Nicht gruppieren'

This commit is contained in:
dankito 2024-09-08 20:52:42 +02:00
parent 0ae96675c1
commit 61ce30c634
1 changed files with 2 additions and 4 deletions

View File

@ -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)
)
}
}