Skip to content

Commit

Permalink
Fixed: #10 Transaction state does not always fit
Browse files Browse the repository at this point in the history
  • Loading branch information
gemdev111 committed Jun 6, 2024
1 parent e27ded0 commit 1be48dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gem/Transactions/Views/TransactionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions Packages/Components/Sources/Lists/ListItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ extension ListItemView {
.font(titleTagStyle.font)
.foregroundStyle(titleTagStyle.color)
.lineLimit(1)
.minimumScaleFactor(0.8)

switch titleTagType {
case .none:
Expand Down

0 comments on commit 1be48dc

Please sign in to comment.