Set min and max height for label and usage so that list items have a fixed height

This commit is contained in:
dankito 2020-07-26 20:06:59 +02:00
parent c8c116e9e4
commit 61ae37a3b3
1 changed files with 3 additions and 1 deletions

View File

@ -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()