Fix order items and table members sections to expand full width
This commit is contained in:
parent
25bfb9f4df
commit
445ec768b4
1 changed files with 4 additions and 0 deletions
|
|
@ -434,6 +434,7 @@ struct TaskDetailScreen: View {
|
|||
.foregroundColor(.secondary)
|
||||
Text("Table Members (\(d.tableMembers.count))")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
Spacer()
|
||||
}
|
||||
|
||||
FlowLayout(spacing: 8) {
|
||||
|
|
@ -460,6 +461,7 @@ struct TaskDetailScreen: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(16)
|
||||
.background(Color(.secondarySystemGroupedBackground))
|
||||
.cornerRadius(12)
|
||||
|
|
@ -474,12 +476,14 @@ struct TaskDetailScreen: View {
|
|||
.foregroundColor(.secondary)
|
||||
Text("Order Items (\(d.mainItems.count))")
|
||||
.font(.subheadline.weight(.semibold))
|
||||
Spacer()
|
||||
}
|
||||
|
||||
ForEach(d.mainItems) { item in
|
||||
orderItemRow(item, details: d)
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(16)
|
||||
.background(Color(.secondarySystemGroupedBackground))
|
||||
.cornerRadius(12)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue