From 00a651b612d202bf4f5c081b835336baddab523e Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 13 Jul 2026 14:14:32 +0530 Subject: [PATCH] fix(folio): show balance as a compact one-line label per review: one line, account-name-sized, e.g. "Balance: $0.00" instead of a large balance card. --- .../folio/feature/ledger/AddTransactionScreen.kt | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/ledger/AddTransactionScreen.kt b/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/ledger/AddTransactionScreen.kt index 347f071..7f6c9f8 100644 --- a/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/ledger/AddTransactionScreen.kt +++ b/examples/folio/app/shared/src/commonMain/kotlin/app/folio/feature/ledger/AddTransactionScreen.kt @@ -21,7 +21,6 @@ import app.folio.ui.BackHandler import app.folio.ui.component.AppButton import app.folio.ui.component.BackButton import app.folio.ui.component.ButtonStyle -import app.folio.ui.component.Card import app.folio.ui.component.EmptyState import app.folio.ui.component.ErrorText import app.folio.ui.component.FieldLabel @@ -87,15 +86,12 @@ fun AddTransactionScreen(state: AddTransactionUiState, onEvent: (AddTransactionE modifier = Modifier.fillMaxWidth().padding(vertical = 8.dp), verticalArrangement = Arrangement.spacedBy(16.dp), ) { - Card { - Text("CURRENT BALANCE", style = Type.label, color = t.textMuted) - Text( - formatCents(state.balanceCents), - style = Type.balance, - color = t.text, - modifier = Modifier.testTag("TxnCurrentBalance"), - ) - } + Text( + "Balance: ${formatCents(state.balanceCents)}", + style = Type.body, + color = t.textMuted, + modifier = Modifier.testTag("TxnCurrentBalance"), + ) Segmented( selected = if (state.type == TxnType.credit) 0 else 1, labels = listOf("Credit", "Debit"),