From 7f0c764c1cc21d7bed0250cb1fd113f670d0a8ee Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 25 Mar 2026 11:29:11 +0000 Subject: [PATCH] fix: equal height metric cards in grid --- PulseHealth/Views/DashboardView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PulseHealth/Views/DashboardView.swift b/PulseHealth/Views/DashboardView.swift index 5085e37..0fac783 100644 --- a/PulseHealth/Views/DashboardView.swift +++ b/PulseHealth/Views/DashboardView.swift @@ -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)