Set min and max height for label and usage so that list items have a fixed height
This commit is contained in:
parent
c8c116e9e4
commit
61ae37a3b3
|
@ -33,10 +33,12 @@ struct AccountTransactionListItem: View {
|
|||
VStack(alignment: .leading) {
|
||||
Text(getTransactionLabel(transaction))
|
||||
.font(.headline)
|
||||
.padding(.bottom, 4)
|
||||
.frame(height: 20)
|
||||
|
||||
Text(transaction.usage)
|
||||
.styleAsDetail()
|
||||
.padding(.top, 4)
|
||||
.frame(height: 42, alignment: .center)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
|
Loading…
Reference in New Issue