The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): give Android reply actions 48dp touch targets (#27020)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
Valerii Kuznietsov committed
Oct 31, 2026 at 01:44 UTC
f2ae39045795aae868ad101f2f48ffda5fc3b6fc
1 file changed
+24
-3
apps/mobile/src/features/threads/ThreadFeed.tsx
+24
-3
@@ -167,6 +167,7 @@ import { CopyTextButton } from "./CopyTextButton";
167
import { getReviewSectionIdForCheckpoint } from "../review/reviewModel";
168
import { setReviewSelectedSectionId } from "../review/reviewState";
169
import { Menu } from "../../components/ui/Menu";
170
+import { useAndroidControlSizing } from "../../components/ui/useAndroidControlSizing";
171
import { copyPromptLink } from "../prompt-links/prompt-link-actions";
172
import { parseReviewCommentMessageSegments } from "../review/reviewCommentSelection";
173
import {
@@ -420,6 +421,8 @@ function UserMessageCopyButton(props: {
421
function AssistantForkButton(props: {
422
readonly environmentId: EnvironmentId;
423
readonly iconColor: ColorValue;
424
+ readonly buttonSize: number;
425
+ readonly iconSize: number;
426
readonly projectedItem: OrchestrationV2ProjectedTurnItem;
427
readonly sourceTitle: string;
428
}) {
@@ -476,13 +479,18 @@ function AssistantForkButton(props: {
479
.finally(() => setBusy(false));
480
}}
481
className="h-7 w-7 items-center justify-center disabled:opacity-40"
482
+ style={
483
+ Platform.OS === "android"
484
+ ? { width: props.buttonSize, height: props.buttonSize }
485
+ : undefined
486
+ }
487
>
488
{busy ? (
489
<AppActivityIndicator size="small" />
490
) : (
491
<SymbolView
492
name="arrow.triangle.branch"
485
- size={13}
493
+ size={props.iconSize}
494
tintColor={props.iconColor}
495
type="monochrome"
496
/>
@@ -1597,6 +1605,7 @@ function renderFeedEntry(
1605
readonly renderViewedImage: MarkdownImageRenderer;
1606
readonly renderReasoning: (text: string) => ReactNode;
1607
readonly iconSubtleColor: string | import("react-native").ColorValue;
1608
+ readonly replyActionSize: { readonly button: number; readonly icon: number };
1609
readonly screenColor: string;
1610
readonly userBubbleColor: string | import("react-native").ColorValue;
1611
readonly markdownStyles: MarkdownStyleSets;
@@ -2195,13 +2204,15 @@ function renderFeedEntry(
2204
accessibilityLabel="Copy message"
2205
text={renderedText}
2206
tintColor={iconSubtleColor}
2198
- buttonSize={28}
2199
- iconSize={13}
2207
+ buttonSize={props.replyActionSize.button}
2208
+ iconSize={props.replyActionSize.icon}
2209
/>
2210
{message.projectedItem ? (
2211
<AssistantForkButton
2212
environmentId={props.environmentId}
2213
iconColor={iconSubtleColor}
2214
+ buttonSize={props.replyActionSize.button}
2215
+ iconSize={props.replyActionSize.icon}
2216
projectedItem={message.projectedItem}
2217
sourceTitle={props.threadTitle}
2218
/>
@@ -2665,6 +2676,15 @@ export const ThreadFeed = memo(function ThreadFeed({
2676
2677
const theme = useUniwindTheme();
2678
const iconSubtleColor = theme["--color-icon-subtle"];
2679
+ const { buttonSize: androidButtonSize, smallIconSize: androidIconSize } =
2680
+ useAndroidControlSizing();
2681
+ const replyActionSize = useMemo(
2682
+ () =>
2683
+ Platform.OS === "android"
2684
+ ? { button: androidButtonSize, icon: androidIconSize }
2685
+ : { button: 28, icon: 13 },
2686
+ [androidButtonSize, androidIconSize],
2687
+ );
2688
const screenColor = theme["--color-screen"];
2689
const userBubbleColor = theme["--color-user-bubble"];
2690
const openSkillInstructions = (path: string) => {
@@ -3520,6 +3540,7 @@ export const ThreadFeed = memo(function ThreadFeed({
3540
renderViewedImage,
3541
renderReasoning,
3542
iconSubtleColor,
3543
+ replyActionSize,
3544
screenColor,
3545
userBubbleColor,
3546
markdownStyles,