The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): dictation buttons line up with the send button on every composer (#26231)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 27, 2026 at 18:18 UTC
7f2dcd8e6e62fa72f66723177be34c864277806c
2 files changed
+21
-9
apps/mobile/src/features/threads/ThreadComposer.tsx
+6
-2
@@ -576,6 +576,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
576
const floatingSidebarComposer = useAndroidFloatingTabs() && layout.usesSplitView;
577
const usesLargeControls =
578
useSidebarWorkspaceTabs() === "picker" || (Platform.OS === "ios" && Platform.isPad);
579
+ const surfacePaddingVertical = usesLargeControls ? 9 : floatingSidebarComposer ? 6 : 2;
580
const [compactRowWidth, setCompactRowWidth] = useState(0);
581
const compactAttachmentLimit = compactRowWidth >= 500 ? 3 : 1;
582
const compactEditor = useCompactComposerEditor(bodyText, draftMessage);
@@ -871,7 +872,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
872
borderRadius: usesLargeControls ? 31 : 27,
873
borderCurve: "circular",
874
overflow: "hidden",
874
- paddingVertical: usesLargeControls ? 9 : floatingSidebarComposer ? 6 : 2,
875
+ paddingVertical: surfacePaddingVertical,
876
}}
877
>
878
{isExpanded ? editingAttachments : null}
@@ -1122,7 +1123,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
1123
collapsable={false}
1124
importantForAccessibility={isToolbarVisible ? "auto" : "no-hide-descendants"}
1125
pointerEvents={isToolbarVisible ? "auto" : "none"}
1125
- style={{ position: "absolute", bottom: usesLargeControls ? 9 : 2, left: 0, right: 0 }}
1126
+ style={{ position: "absolute", bottom: surfacePaddingVertical, left: 0, right: 0 }}
1127
>
1128
<ComposerDictationToolbar
1129
showsDictation={isVoiceInputPresented}
@@ -1174,6 +1175,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
1175
/>
1176
{showStopAction ? (
1177
<ComposerActionButton
1178
+ size={usesLargeControls ? "large" : "regular"}
1179
accessibilityLabel="Stop agent"
1180
icon="stop.fill"
1181
variant="danger"
@@ -1182,6 +1184,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
1184
/>
1185
) : showResumeAction && voicePresentation.showsSend ? (
1186
<ComposerActionButton
1187
+ size={usesLargeControls ? "large" : "regular"}
1188
accessibilityLabel="Resume queue"
1189
icon="play"
1190
disabled={!props.canOperateThread || resumingQueue}
@@ -1189,6 +1192,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
1192
/>
1193
) : voicePresentation.showsSend ? (
1194
<SendActionButton
1195
+ size={usesLargeControls ? "large" : "regular"}
1196
accessibilityLabel={sendBlockedReason ?? sendLabel}
1197
presentation={sendPresentation}
1198
disabled={!canSend}
apps/mobile/src/features/voice-input/ComposerDictationControl.tsx
+15
-7
@@ -15,6 +15,7 @@ import Animated, {
15
import { AppActivityIndicator } from "../../components/ui/AppActivityIndicator";
16
import { AppText as Text } from "../../components/ui/AppText";
17
import { SymbolView, type AppSymbolName } from "../../components/ui/AppSymbol";
18
+import { useAndroidControlSizing } from "../../components/ui/useAndroidControlSizing";
19
import { cn } from "../../lib/cn";
20
import type { VoiceComposerPresentation } from "./voiceInputPresentation";
21
import { VOICE_WAVEFORM_SAMPLE_COUNT } from "./voiceInputMetering";
@@ -258,8 +259,14 @@ function VoiceActionButton(props: {
259
readonly onPress: () => void;
260
readonly variant?: "plain" | "primary";
261
}) {
262
+ const { scale } = useAndroidControlSizing();
263
const variant = props.variant ?? "plain";
264
const loading = props.loading === true;
265
+ const large = props.size === "large";
266
+ const circleSize = Math.round((large ? 44 : 30) * scale);
267
+ const iconSize = Math.round(
268
+ (variant === "primary" ? (large ? 20 : 16) : large ? 24 : 20) * scale,
269
+ );
270
const primaryStyle = useAnimatedStyle(() => ({
271
opacity: withTiming(loading ? 0 : 1, DICTATION_TIMING),
272
}));
@@ -272,17 +279,18 @@ function VoiceActionButton(props: {
279
className="size-[44px] shrink-0 items-center justify-center active:opacity-70"
280
disabled={props.disabled}
281
onPress={props.onPress}
275
- style={{ opacity: props.disabled && !props.loading ? 0.4 : 1 }}
282
+ style={{
283
+ opacity: props.disabled && !props.loading ? 0.4 : 1,
284
+ // Matches ComposerActionButton so the circle stays concentric with the large composer corner.
285
+ width: variant === "primary" && large ? 62 : undefined,
286
+ }}
287
>
288
<View
289
className={cn(
290
"items-center justify-center",
280
- variant === "primary"
281
- ? props.size === "large"
282
- ? "size-[44px] rounded-full bg-subtle"
283
- : "size-[30px] rounded-full bg-subtle"
284
- : "size-[44px]",
291
+ variant === "primary" ? "rounded-full bg-subtle" : "size-[44px]",
292
)}
293
+ style={variant === "primary" ? { width: circleSize, height: circleSize } : undefined}
294
>
295
{variant === "primary" ? (
296
<Animated.View
@@ -296,7 +304,7 @@ function VoiceActionButton(props: {
304
) : (
305
<SymbolView
306
name={props.icon}
299
- size={props.size === "large" ? 24 : variant === "primary" ? 16 : 20}
307
+ size={iconSize}
308
weight={variant === "primary" ? "semibold" : "regular"}
309
tintColorClassName={
310
variant === "primary" ? "accent-primary-foreground" : "accent-icon"