Made spacing a bit greater, looks better

This commit is contained in:
dankito 2024-08-26 21:58:51 +02:00
parent 2170bbc474
commit 8753d4c6d8
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
Row( Row(
modifier = Modifier.fillMaxWidth() modifier = Modifier.fillMaxWidth()
.background(color = backgroundColor) .background(color = backgroundColor)
.padding(horizontal = 6.dp, vertical = 4.dp) .padding(horizontal = 6.dp, vertical = 6.dp)
) { ) {
Column(Modifier.weight(1f)) { Column(Modifier.weight(1f)) {
Text( Text(
@ -29,7 +29,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
) )
Spacer(modifier = Modifier.height(4.dp)) Spacer(modifier = Modifier.height(6.dp))
Text( Text(
text = transaction.reference, text = transaction.reference,
@ -39,7 +39,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
) )
} }
Spacer(Modifier.width(8.dp)) Spacer(Modifier.width(6.dp).background(Color.Yellow))
Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) { Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) {
Text( Text(
@ -47,7 +47,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
color = formatUtil.getColorForAmount(transaction.amount) color = formatUtil.getColorForAmount(transaction.amount)
) )
Spacer(Modifier.height(8.dp)) Spacer(Modifier.height(6.dp))
Text( Text(
text = formatUtil.formatDate(transaction.valueDate) text = formatUtil.formatDate(transaction.valueDate)