Skip to content

Commit 32cef1a

Browse files
tomkisclaude
andcommitted
fix: match loading screen input style for custom mode
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4c59208 commit 32cef1a

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

mobile/ui/workout/components/exercise-pending.tsx

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,22 @@ const styles = StyleSheet.create({
118118
fontFamily: theme.font.sairaBold,
119119
color: theme.colors.primary.main,
120120
},
121+
inputWrapper: {
122+
borderWidth: 1,
123+
borderColor: 'rgba(255, 255, 255, 0.23)',
124+
borderRadius: 8,
125+
paddingHorizontal: 12,
126+
paddingVertical: 8,
127+
flexDirection: 'row',
128+
flex: 1,
129+
},
130+
inputLabel: {
131+
color: theme.colors.text.primary,
132+
lineHeight: 24,
133+
letterSpacing: 0.15,
134+
fontSize: 16,
135+
fontFamily: theme.font.sairaRegular,
136+
},
121137
})
122138

123139
export const ExercisePending = (props: {
@@ -279,32 +295,28 @@ export const ExercisePending = (props: {
279295
</View>
280296
{showCustomInputs ? (
281297
<>
282-
<View style={styles.setsCard}>
283-
<View style={{ padding: CARD_PADDING }}>
284-
<Text style={[styles.setDetails, { color: theme.colors.text.primary, marginBottom: 12 }]}>
285-
{pendingExercise.sets.length} SETS
286-
</Text>
287-
<View style={{ marginBottom: 16 }}>
288-
<Text style={[styles.setDetails, { color: theme.colors.gray.light, marginBottom: 4, textTransform: 'uppercase' }]}>
289-
Weight ({props.unit === 'metric' ? 'kg' : 'lbs'})
290-
</Text>
298+
<View style={{ marginTop: CARD_PADDING }}>
299+
<Text style={[styles.setDetails, { color: theme.colors.text.primary, marginBottom: 12 }]}>
300+
{pendingExercise.sets.length} SETS — ENTER YOUR WEIGHT AND REPS
301+
</Text>
302+
<View style={{ flexDirection: 'row', gap: 8 }}>
303+
<View style={styles.inputWrapper}>
291304
<NumericalInput
292305
value={customWeight}
293306
keyboardType="decimal-pad"
294307
onChange={setCustomWeight}
295308
placeholder="Weight"
296309
/>
310+
<Text style={styles.inputLabel}>{props.unit === 'metric' ? 'kg' : 'lbs'}</Text>
297311
</View>
298-
<View>
299-
<Text style={[styles.setDetails, { color: theme.colors.gray.light, marginBottom: 4, textTransform: 'uppercase' }]}>
300-
Reps
301-
</Text>
312+
<View style={styles.inputWrapper}>
302313
<NumericalInput
303314
value={customReps}
304315
keyboardType="number-pad"
305316
onChange={setCustomReps}
306317
placeholder="Reps"
307318
/>
319+
<Text style={styles.inputLabel}>reps</Text>
308320
</View>
309321
</View>
310322
</View>

0 commit comments

Comments
 (0)