The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): center floating status actions (#24526)
Alex committed
Oct 24, 2026 at 17:57 UTC
5ed8b54860c6128012c2b13d489814758f794320
1 file changed
+18
-14
apps/mobile/src/features/threads/floating-working-control.tsx
+18
-14
@@ -196,20 +196,24 @@ export function FloatingWorkingControl(props: {
196
<View className="flex-row items-center">
197
{statusContent}
198
{action !== null ? (
199
- <Pressable
200
- accessibilityRole="button"
201
- accessibilityLabel={action.accessibilityLabel}
202
- accessibilityState={{ disabled: action.disabled }}
203
- disabled={action.disabled}
204
- onPress={action.onPress}
199
+ <View
200
onLayout={(event) => setActionWidth(settleWidth(event.nativeEvent.layout.width))}
206
- className={`h-11 flex-row items-center gap-1.5 px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`}
201
+ className="h-11 flex-row items-center"
202
>
208
- <View className="mr-1 h-4 w-px bg-border" />
209
- <Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}>
210
- {action.label}
211
- </Text>
212
- </Pressable>
203
+ <View className="h-4 w-px bg-border" />
204
+ <Pressable
205
+ accessibilityRole="button"
206
+ accessibilityLabel={action.accessibilityLabel}
207
+ accessibilityState={{ disabled: action.disabled }}
208
+ disabled={action.disabled}
209
+ onPress={action.onPress}
210
+ className={`h-11 items-center justify-center px-3 active:opacity-70 ${action.disabled ? "opacity-50" : ""}`}
211
+ >
212
+ <Text className="font-t3-medium text-xs text-foreground" numberOfLines={1}>
213
+ {action.label}
214
+ </Text>
215
+ </Pressable>
216
+ </View>
217
) : null}
218
{hasPreview ? (
219
<View
@@ -234,7 +238,7 @@ export function FloatingWorkingControl(props: {
238
onLayout={(event) => setAgentsWidth(settleWidth(event.nativeEvent.layout.width))}
239
className="h-11 flex-row items-center gap-1.5 px-3 active:opacity-70"
240
>
237
- {hasStatus || hasPreview ? <View className="mr-1 h-4 w-px bg-border" /> : null}
241
+ {hasStatus || hasPreview ? <View className="absolute left-0 h-4 w-px bg-border" /> : null}
242
<SymbolView name="person.2" size={13} tintColorClassName="accent-foreground-muted" />
243
<Text className="font-t3-medium text-xs tabular-nums" numberOfLines={1}>
244
{agents.label}
@@ -252,7 +256,7 @@ export function FloatingWorkingControl(props: {
256
className="h-11 flex-row items-center gap-2 px-3 active:opacity-70"
257
>
258
{hasStatus || hasPreview || hasAgents ? (
255
- <View className="mr-1 h-4 w-px bg-border" />
259
+ <View className="absolute left-0 h-4 w-px bg-border" />
260
) : null}
261
<SymbolView name="list.number" size={13} tintColorClassName="accent-foreground-muted" />
262
<Text className="shrink font-t3-medium text-xs tabular-nums" numberOfLines={1}>