From 8753d4c6d8cd08665d96aeb305fcbad840d9736d Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 26 Aug 2024 21:58:51 +0200 Subject: [PATCH] Made spacing a bit greater, looks better --- .../codinux/banking/ui/composables/TransactionListItem.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt index 9015050..5513d64 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionListItem.kt @@ -19,7 +19,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color) Row( modifier = Modifier.fillMaxWidth() .background(color = backgroundColor) - .padding(horizontal = 6.dp, vertical = 4.dp) + .padding(horizontal = 6.dp, vertical = 6.dp) ) { Column(Modifier.weight(1f)) { Text( @@ -29,7 +29,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color) overflow = TextOverflow.Ellipsis ) - Spacer(modifier = Modifier.height(4.dp)) + Spacer(modifier = Modifier.height(6.dp)) Text( 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) { Text( @@ -47,7 +47,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color) color = formatUtil.getColorForAmount(transaction.amount) ) - Spacer(Modifier.height(8.dp)) + Spacer(Modifier.height(6.dp)) Text( text = formatUtil.formatDate(transaction.valueDate)