fix: equal height metric cards in grid
This commit is contained in:
@@ -155,6 +155,7 @@ struct DashboardView: View {
|
||||
// Sleep
|
||||
if let sleep = latest?.sleep {
|
||||
SleepCard(sleep: sleep)
|
||||
.frame(maxHeight: .infinity)
|
||||
}
|
||||
|
||||
// Heart Rate
|
||||
@@ -167,6 +168,7 @@ struct DashboardView: View {
|
||||
color: Color(hex: "ff4757"),
|
||||
gradientColors: [Color(hex: "ff4757"), Color(hex: "ff6b81")]
|
||||
)
|
||||
.frame(maxHeight: .infinity)
|
||||
}
|
||||
|
||||
// HRV
|
||||
@@ -179,11 +181,13 @@ struct DashboardView: View {
|
||||
color: Color(hex: "00d4aa"),
|
||||
gradientColors: [Color(hex: "00d4aa"), Color(hex: "00b894")]
|
||||
)
|
||||
.frame(maxHeight: .infinity)
|
||||
}
|
||||
|
||||
// Steps
|
||||
if let steps = latest?.steps {
|
||||
StepsCard(steps: steps.total ?? 0)
|
||||
.frame(maxHeight: .infinity)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
|
||||
Reference in New Issue
Block a user