Fixed that padding had always been show at the bottom so that items could not scroll 'behind' to bottom bar

This commit is contained in:
dankito 2024-09-05 04:09:51 +02:00
parent a1c4f094f4
commit ec245f96d5
2 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

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