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,