From 12d6c071860a70a0d0cb6ff9635c205fdb681230 Mon Sep 17 00:00:00 2001 From: echo Date: Tue, 31 Mar 2026 18:16:59 +0200 Subject: [PATCH] fix step progress header overflow on home card --- apps/mobile/src/app/(tabs)/index.tsx | 103 +++++++++++++++------------ 1 file changed, 57 insertions(+), 46 deletions(-) diff --git a/apps/mobile/src/app/(tabs)/index.tsx b/apps/mobile/src/app/(tabs)/index.tsx index 91aca56..c4728dc 100644 --- a/apps/mobile/src/app/(tabs)/index.tsx +++ b/apps/mobile/src/app/(tabs)/index.tsx @@ -568,6 +568,57 @@ export default function HomeScreen() { + {/* Steps */} + + + + + + + 👣 + + + + Steps + + + {stepsLoading + ? "Loading steps..." + : !stepsSupported + ? "Step tracking not supported on this device" + : !stepsPermissionGranted + ? "Enable motion access in settings" + : steps >= stepsGoal + ? "Daily step goal reached!" + : `${Math.max(0, stepsGoal - steps)} steps remaining`} + + + + + {stepsLoading ? "--" : `${steps}/${stepsGoal}`} + + + + + + {/* Quick Actions */} - - - - - - 👣 - - - - Steps - - - {stepsLoading - ? "Loading steps..." - : !stepsSupported - ? "Step tracking not supported on this device" - : !stepsPermissionGranted - ? "Enable motion access in settings" - : steps >= stepsGoal - ? "Daily step goal reached!" - : `${Math.max(0, stepsGoal - steps)} steps remaining`} - - - - - {stepsLoading ? "--" : `${steps}/${stepsGoal}`} - - - - {/* Recent Activity */} @@ -1072,7 +1078,12 @@ const styles = StyleSheet.create({ justifyContent: "space-between", alignItems: "center", }, - progressLabelRow: { flexDirection: "row", alignItems: "center" }, + progressLabelRow: { + flexDirection: "row", + alignItems: "center", + flex: 1, + minWidth: 0, + }, progressIcon: { width: 48, height: 48,