diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt index fe3648b..1d008ee 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt @@ -37,7 +37,7 @@ fun GroupedTransactionsListItems( val showColoredAmounts by DI.uiSettings.showColoredAmounts.collectAsState() - LazyColumn(modifier) { + LazyColumn(modifier, contentPadding = PaddingValues(bottom = 12.dp)) { // padding bottom = add the space the FAB sticks into the content area (= 26 - the 16 we add at the bottom of the expenses line) items(groupedByMonth.keys.sortedDescending()) { month -> Column(Modifier.fillMaxWidth()) { Text( diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt index b7db049..d0ad8a9 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionsList.kt @@ -43,7 +43,7 @@ fun TransactionsList(uiState: UiState, uiSettings: UiSettings) { val showColoredAmounts by DI.uiSettings.showColoredAmounts.collectAsState() - val transactionsListModifier = Modifier.fillMaxSize().padding(bottom = 12.dp) // padding bottom = add the space the FAB sticks into the content area (= 26 - the 16 we add at the bottom of the expenses line) + val transactionsListModifier = Modifier.fillMaxSize() Column(Modifier.fillMaxSize().padding(horizontal = 8.dp)) { @@ -60,7 +60,7 @@ fun TransactionsList(uiState: UiState, uiSettings: UiSettings) { if (groupTransactions) { GroupedTransactionsListItems(transactionsListModifier, transactionsToDisplay, userAccountsId) } else { - LazyColumn(transactionsListModifier.padding(top = 8.dp, bottom = 16.dp)) { + LazyColumn(transactionsListModifier, contentPadding = PaddingValues(top = 8.dp, bottom = 16.dp)) { itemsIndexed(transactionsToDisplay) { index, transaction -> TransactionListItem(userAccountsId[transaction.userAccountId], transaction, index, transactionsToDisplay.size) }