Fix order items and table members sections to expand full width

This commit is contained in:
John Pinkyfloyd 2026-02-17 11:32:44 -08:00
parent 25bfb9f4df
commit 445ec768b4

View file

@ -434,6 +434,7 @@ struct TaskDetailScreen: View {
.foregroundColor(.secondary) .foregroundColor(.secondary)
Text("Table Members (\(d.tableMembers.count))") Text("Table Members (\(d.tableMembers.count))")
.font(.subheadline.weight(.semibold)) .font(.subheadline.weight(.semibold))
Spacer()
} }
FlowLayout(spacing: 8) { FlowLayout(spacing: 8) {
@ -460,6 +461,7 @@ struct TaskDetailScreen: View {
} }
} }
} }
.frame(maxWidth: .infinity, alignment: .leading)
.padding(16) .padding(16)
.background(Color(.secondarySystemGroupedBackground)) .background(Color(.secondarySystemGroupedBackground))
.cornerRadius(12) .cornerRadius(12)
@ -474,12 +476,14 @@ struct TaskDetailScreen: View {
.foregroundColor(.secondary) .foregroundColor(.secondary)
Text("Order Items (\(d.mainItems.count))") Text("Order Items (\(d.mainItems.count))")
.font(.subheadline.weight(.semibold)) .font(.subheadline.weight(.semibold))
Spacer()
} }
ForEach(d.mainItems) { item in ForEach(d.mainItems) { item in
orderItemRow(item, details: d) orderItemRow(item, details: d)
} }
} }
.frame(maxWidth: .infinity, alignment: .leading)
.padding(16) .padding(16)
.background(Color(.secondarySystemGroupedBackground)) .background(Color(.secondarySystemGroupedBackground))
.cornerRadius(12) .cornerRadius(12)