[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 31/32: Fix layout of tx list
From: |
gnunet |
Subject: |
[taler-taler-ios] 31/32: Fix layout of tx list |
Date: |
Sun, 14 Jul 2024 00:19:40 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 731c6f1db84032e133029346c25e31a1fdd3f235
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sat Jul 13 23:49:21 2024 +0200
Fix layout of tx list
---
.../Views/Transactions/TransactionRowView.swift | 42 +++++++++-------------
1 file changed, 16 insertions(+), 26 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift
b/TalerWallet1/Views/Transactions/TransactionRowView.swift
index b1930dd..316fa84 100644
--- a/TalerWallet1/Views/Transactions/TransactionRowView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionRowView.swift
@@ -71,38 +71,29 @@ struct TransactionRowView: View {
.talerFont(.callout)
#if DEBUG
- let debug = false
+ let debug = 1==0
let red = debug ? Color.red : Color.clear
let green = debug ? Color.green : Color.clear
let blue = debug ? Color.blue : Color.clear
let orange = debug ? Color.orange : Color.clear
#endif
- let layout1 = HStack(spacing: 0) {
- HStack(spacing: 2) {
- iconBadge
-// Spacer(minLength: 0)
+ let layout1 = HStack(spacing: 4) {
VStack(alignment: .leading) {
centerTop
centerBottom
}
- Spacer(minLength: 2)
- }
+#if DEBUG
+ .border(orange)
+#endif
+ Spacer(minLength: 0)
amountV //.frame(maxWidth: .infinity, alignment: .trailing)
}
- let layout2 = VStack(spacing: 0) {
+ let layout2 = VStack(alignment: .leading, spacing: 2) {
centerTop
- HStack(spacing: 8) {
- HStack(spacing: 0) {
- iconBadge
-#if DEBUG
- .border(blue)
-#endif
- Spacer(minLength: 0)
- centerBottom
- Spacer(minLength: 2)
- }
+ HStack(spacing: 10) {
+ centerBottom
#if DEBUG
.border(green)
#endif
@@ -115,25 +106,20 @@ struct TransactionRowView: View {
let layout3 = VStack(spacing: 0) {
HStack(spacing: 8) {
- HStack(spacing: 0) {
- iconBadge
- Spacer(minLength: 0)
centerTop
Spacer(minLength: 2)
- }
amountV
}
centerBottom
}
- let layout4 = VStack(spacing: 0) {
+ let layout4 = VStack(alignment: .leading, spacing: 2) {
centerTop
HStack(spacing: -4) {
- iconBadge
+ Spacer(minLength: 2)
#if DEBUG
.border(green)
#endif
- Spacer(minLength: 2)
amountV
#if DEBUG
.border(green)
@@ -145,7 +131,11 @@ struct TransactionRowView: View {
centerBottom
}
- Group {
+ HStack {
+ iconBadge
+#if DEBUG
+ .border(blue)
+#endif
if #available(iOS 16.0, *) {
ViewThatFits(in: .horizontal) {
layout1
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 04/32: useISO, (continued)
- [taler-taler-ios] 04/32: useISO, gnunet, 2024/07/13
- [taler-taler-ios] 02/32: fix string replace, gnunet, 2024/07/13
- [taler-taler-ios] 07/32: wireFee, gnunet, 2024/07/13
- [taler-taler-ios] 08/32: new withdrawal procedure (amountIsEditable), gnunet, 2024/07/13
- [taler-taler-ios] 03/32: iso instead of symbol, fix formatting of currency strings, gnunet, 2024/07/13
- [taler-taler-ios] 05/32: move QR scanner into MainView, gnunet, 2024/07/13
- [taler-taler-ios] 15/32: minimalistic: no currency name, gnunet, 2024/07/13
- [taler-taler-ios] 18/32: cleanup, gnunet, 2024/07/13
- [taler-taler-ios] 28/32: Icons in transactions, gnunet, 2024/07/13
- [taler-taler-ios] 30/32: IconBadge improvements, gnunet, 2024/07/13
- [taler-taler-ios] 31/32: Fix layout of tx list,
gnunet <=
- [taler-taler-ios] 20/32: qrCodesForPayto WIP, gnunet, 2024/07/13
- [taler-taler-ios] 26/32: TwoRowButtons with icons, gnunet, 2024/07/13
- [taler-taler-ios] 25/32: Error+debugDescription, gnunet, 2024/07/13
- [taler-taler-ios] 27/32: Authorize instead of confirm, gnunet, 2024/07/13
- [taler-taler-ios] 09/32: remove QR from Overview, gnunet, 2024/07/13
- [taler-taler-ios] 17/32: showUpDown if 25 entries, gnunet, 2024/07/13
- [taler-taler-ios] 13/32: comment out payto scheme, gnunet, 2024/07/13
- [taler-taler-ios] 10/32: QR button smaller, gnunet, 2024/07/13
- [taler-taler-ios] 12/32: disable hintNetworkAvailability, logging, gnunet, 2024/07/13
- [taler-taler-ios] 24/32: cleanup, gnunet, 2024/07/13