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 1a9da00..2fbc002 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,12 +19,9 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color) Row( modifier = Modifier.fillMaxWidth() .background(color = backgroundColor) - .padding(horizontal = 6.dp, vertical = 4.dp), - verticalAlignment = Alignment.CenterVertically + .padding(horizontal = 6.dp, vertical = 4.dp) ) { - Column( - modifier = Modifier.weight(1f) - ) { + Column(Modifier.weight(1f)) { Text( text = transaction.otherPartyName ?: "", Modifier.fillMaxWidth(), @@ -42,15 +39,15 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color) ) } - Spacer(modifier = Modifier.width(8.dp)) + Spacer(Modifier.width(8.dp)) Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) { Text( text = formatUtil.formatAmount(transaction.amount, transaction.currency), - color = formatUtil.getColorForAmount(transaction.amount), + color = formatUtil.getColorForAmount(transaction.amount) ) - Spacer(modifier = Modifier.height(8.dp)) + Spacer(Modifier.height(8.dp)) Text( text = formatUtil.formatDate(transaction.valueDate)