taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 5ee1fc4a3924e4420adc78c2dd3118b7b436b5d8
parent d2cf26300de6c2c7d59c39be32f1ca46054b4b0f
Author: Marc Stibane <marc@taler.net>
Date:   Wed, 20 Nov 2024 07:53:19 +0100

layout improvement

Diffstat:
MTalerWallet1/Views/Transactions/TransactionRowView.swift | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift @@ -103,7 +103,7 @@ struct TransactionRowView: View { let orange = debug ? Color.orange : Color.clear #endif - let layout1 = HStack(spacing: 4) { + let layout1 = HStack(spacing: 4) { // amount right centered, top & bottom left VStack(alignment: .leading, spacing: 2) { if topString != nil { centerTop } centerBottom @@ -115,7 +115,7 @@ struct TransactionRowView: View { amountV //.frame(maxWidth: .infinity, alignment: .trailing) } - let layout2 = VStack(alignment: .leading, spacing: 2) { + let layout2 = VStack(alignment: .leading, spacing: 2) { // top full-width, bottom & amount below if topString != nil { centerTop } HStack(spacing: 6) { centerBottom @@ -130,15 +130,15 @@ struct TransactionRowView: View { } } - let layout3 = VStack(spacing: 0) { - if topString != nil { + let layout3 = VStack(alignment: .leading, spacing: 0) { + if topString != nil { // top & amount, bottom below HStack(spacing: 8) { centerTop Spacer(minLength: 2) amountV } centerBottom - } else { + } else { // no top, bottom & amount HStack(spacing: 8) { centerBottom Spacer(minLength: 2) @@ -147,7 +147,7 @@ struct TransactionRowView: View { } } - let layout4 = VStack(alignment: .leading, spacing: 2) { + let layout4 = VStack(alignment: .leading, spacing: 2) { // top full-width, amount right, bottom full-width if topString != nil { centerTop } HStack(spacing: -4) { Spacer(minLength: 2)