From 1ec12990207d8fb37166ecbc7c697d59eab679d1 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 26 Aug 2024 01:32:01 +0200 Subject: [PATCH] Reduced padding top of first item --- .../net/codinux/banking/ui/composables/TransactionsList.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt index 02bae20..6512e23 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/TransactionsList.kt @@ -43,7 +43,7 @@ fun TransactionsList(transactions: List) { text = DI.formatUtil.formatMonth(month), fontSize = 16.sp, fontWeight = FontWeight.SemiBold, - modifier = Modifier.padding(top = 24.dp, bottom = 2.dp), + modifier = Modifier.padding(top = 8.dp, bottom = 2.dp), ) Spacer(Modifier.height(4.dp)) @@ -70,7 +70,7 @@ fun TransactionsList(transactions: List) { ) } - Column(Modifier.fillMaxWidth().padding(top = 2.dp), horizontalAlignment = Alignment.End) { + Column(Modifier.fillMaxWidth().padding(top = 2.dp, bottom = 16.dp), horizontalAlignment = Alignment.End) { Text( // TODO: find a better solution text = formatUtil.formatAmount(Amount(monthTransactions.map { it.amount.toBigDecimal() }.filter { it < 0 }.sum().toString()), "EUR"),