From 1be48dc0c8855a60a662785df374896e14ef2e59 Mon Sep 17 00:00:00 2001 From: gemdev111 Date: Thu, 6 Jun 2024 15:14:35 +0300 Subject: [PATCH] Fixed: #10 Transaction state does not always fit --- Gem/Transactions/Views/TransactionView.swift | 9 ++++++++- Packages/Components/Sources/Lists/ListItemView.swift | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Gem/Transactions/Views/TransactionView.swift b/Gem/Transactions/Views/TransactionView.swift index 183804d1..af3d65b5 100644 --- a/Gem/Transactions/Views/TransactionView.swift +++ b/Gem/Transactions/Views/TransactionView.swift @@ -58,7 +58,14 @@ struct TransactionView: View { metadata: nil, createdAt: Date() ) - let pendingTransactionExtendedMock = TransactionExtended(transaction: pendingTransactionMock, asset: .bitcoin, feeAsset: .bitcoin, price: nil, feePrice: nil, assets: []) + let pendingTransactionExtendedMock = TransactionExtended( + transaction: pendingTransactionMock, + asset: .bitcoin, + feeAsset: .bitcoin, + price: nil, + feePrice: nil, + assets: [] + ) let transactionVMMock = TransactionViewModel(transaction: pendingTransactionExtendedMock, formatter: .short) diff --git a/Packages/Components/Sources/Lists/ListItemView.swift b/Packages/Components/Sources/Lists/ListItemView.swift index f93ce5af..135bea83 100644 --- a/Packages/Components/Sources/Lists/ListItemView.swift +++ b/Packages/Components/Sources/Lists/ListItemView.swift @@ -154,6 +154,7 @@ extension ListItemView { .font(titleTagStyle.font) .foregroundStyle(titleTagStyle.color) .lineLimit(1) + .minimumScaleFactor(0.8) switch titleTagType { case .none: