@devries-cameron20 / t3code Mirror · read-only / commits / e71e4d2a02
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 03:15 UTC

fix(mobile): approval card buttons line up (#31415)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

shivam committed Nov 6, 2026 at 02:42 UTC e71e4d2a020c221312f1f4d175e382f8915a1324
2 files changed +25 -7
apps/mobile/src/features/threads/PendingApprovalCard.tsx
+2 -1
@@ -80,7 +80,7 @@ export function PendingApprovalCard(props: PendingApprovalCardProps) {
80 {warning ? (
81 <Text className="font-sans text-xs leading-normal text-warning-foreground">{warning}</Text>
82 ) : null}
83 - <View className="flex-row flex-wrap gap-2.5">
83 + <View className="gap-2">
84 {options.map((option) => (
85 <Button
86 key={option.decision}
@@ -94,6 +94,7 @@ export function PendingApprovalCard(props: PendingApprovalCardProps) {
94 }
95 disabled={disabled || !props.canOperateThread}
96 onPress={() => void props.onRespond(props.approval.requestId, option.decision)}
97 + fullWidth
98 />
99 ))}
100 </View>
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+23 -6
@@ -1019,6 +1019,16 @@ function ThreadDetailBody(
1019 maxHeight: pendingUserInputMaxHeight.value,
1020 flexGrow: 0,
1021 }));
1022 + // Questions overlay the composer on iOS; an approval sits above it, so it gives up its height.
1023 + const approvalHeightStyle = useAnimatedStyle(() => ({
1024 + maxHeight: derivePendingUserInputMaxHeight({
1025 + windowHeight: screenAreaHeight,
1026 + keyboardHeight: keyboardStickyEnabled ? -keyboardTranslation.value : 0,
1027 + navigationHeaderHeight,
1028 + composerOverlapHeight,
1029 + }),
1030 + flexGrow: 0,
1031 + }));
1032 // The usage panel stacks with the composer and any approval card, so it gets
1033 // whatever room they leave below the header. Measured only while it is open
1034 // so typing in the composer does not re-render the screen.
@@ -1718,12 +1728,19 @@ function ThreadDetailBody(
1728 exiting={FadeOut.duration(140)}
1729 >
1730 {props.activePendingApproval ? (
1721 - <PendingApprovalCard
1722 - canOperateThread={props.canOperateThread}
1723 - approval={props.activePendingApproval}
1724 - respondingApprovalId={props.respondingApprovalId}
1725 - onRespond={props.onRespondToApproval}
1726 - />
1731 + <Animated.ScrollView
1732 + key={props.activePendingApproval.requestId}
1733 + style={approvalHeightStyle}
1734 + keyboardShouldPersistTaps="handled"
1735 + nestedScrollEnabled
1736 + >
1737 + <PendingApprovalCard
1738 + canOperateThread={props.canOperateThread}
1739 + approval={props.activePendingApproval}
1740 + respondingApprovalId={props.respondingApprovalId}
1741 + onRespond={props.onRespondToApproval}
1742 + />
1743 + </Animated.ScrollView>
1744 ) : null}
1745 {props.activePendingUserInput ? (
1746 <PendingUserInputCard