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, 12:00 UTC
fix(mobile): use the Android sheet header for Add environment (#23452)
Co-authored-by: maria-rcks <maria@kuuro.net>
Alex committed
Oct 30, 2026 at 13:50 UTC
f8768d68b6e27b05b9a8cf4582002db2e4d12a8f
2 files changed
+22
-10
apps/mobile/src/Stack.tsx
+1
@@ -1006,6 +1006,7 @@ const RootStackConfig = createWorkspaceStackNavigator({
1006
...HORIZONTAL_FORM_SHEET_OPTIONS,
1007
sheetAllowedDetents: [0.55, 0.7],
1008
sheetGrabberVisible: true,
1009
+ sheetCornerRadius: Platform.OS === "android" ? 28 : undefined,
1010
},
1011
}),
1012
NotFound: createNativeStackScreen({
apps/mobile/src/features/settings/components/SettingsScreen.tsx
+21
-10
@@ -2,6 +2,7 @@ import { useNavigation, useRoute } from "@react-navigation/native";
2
import type { ReactNode } from "react";
3
import { Platform, View } from "react-native";
4
5
+import { AndroidSheetHeader } from "../../../components/ui/AndroidScreenHeader";
6
import type { AppBarProps } from "../../../components/ui/AppBar.types";
7
import { AppBar } from "../../../components/ui/AppBar";
8
import { ScreenContent as SettingsScreenContent } from "../../../components/ui/ScreenContent";
@@ -43,18 +44,28 @@ export function SettingsScreen(
44
45
return (
46
<View collapsable={false} className={`flex-1 ${surfaceClassName}`}>
46
- <AppBar
47
- title={props.title}
48
- actions={props.actions}
49
- search={props.search}
50
- trailing={Platform.OS === "android" ? props.trailing : undefined}
51
- sidebar={false}
52
- onBack={workspaceRoot ? undefined : () => navigation.goBack()}
53
- hideBottomBorder={!props.formSheet}
54
- />
47
+ {Platform.OS === "android" && props.formSheet ? (
48
+ <AndroidSheetHeader
49
+ title={props.title}
50
+ actions={props.actions}
51
+ trailing={props.trailing}
52
+ onBack={() => navigation.goBack()}
53
+ hideBottomBorder
54
+ />
55
+ ) : (
56
+ <AppBar
57
+ title={props.title}
58
+ actions={props.actions}
59
+ search={props.search}
60
+ trailing={Platform.OS === "android" ? props.trailing : undefined}
61
+ sidebar={false}
62
+ onBack={workspaceRoot ? undefined : () => navigation.goBack()}
63
+ hideBottomBorder={!props.formSheet}
64
+ />
65
+ )}
66
<ScreenScrollViewBottomInset value={deviceType === "pad" || compactTabs ? 80 : 0}>
67
<ScreenScrollViewSurface value={surfaceClassName}>
57
- {props.formSheet ? (
68
+ {props.formSheet && Platform.OS !== "android" ? (
69
props.children
70
) : (
71
<SettingsScreenContent