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) {
|
VStack(alignment: .leading) {
|
||||||
Text(getTransactionLabel(transaction))
|
Text(getTransactionLabel(transaction))
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
.padding(.bottom, 4)
|
.frame(height: 20)
|
||||||
|
|
||||||
Text(transaction.usage)
|
Text(transaction.usage)
|
||||||
.styleAsDetail()
|
.styleAsDetail()
|
||||||
|
.padding(.top, 4)
|
||||||
|
.frame(height: 42, alignment: .center)
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
Loading…
Reference in New Issue