@devries-cameron20 / t3code-1 / commits / 25bf84ab07
Fork 0

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

fix(mobile): center the Choose project empty-state buttons (#27450)

Julius Marminge committed Nov 7, 2026 at 09:19 UTC 25bf84ab07f53f141c20239c63e383823a9d5ea0
1 file changed +26 -18
apps/mobile/src/features/threads/NewTaskRouteScreen.tsx
+26 -18
@@ -402,21 +402,27 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
402 </Text>
403 {Platform.OS === "android" ? (
404 <>
405 - <Button
406 - label={catalogState.hasReadyEnvironment ? "Add new project" : "Add environment"}
407 - tone="primary"
408 - onPress={() =>
409 - catalogState.hasReadyEnvironment
410 - ? navigation.dispatch(StackActions.push("AddProject"))
411 - : navigation.navigate("ConnectionsNew")
412 - }
413 - />
414 - {canStartScratch ? (
405 + <View>
406 <Button
416 - label="Start without a project"
417 - tone="secondary"
418 - onPress={() => void startScratch()}
407 + label={
408 + catalogState.hasReadyEnvironment ? "Add new project" : "Add environment"
409 + }
410 + tone="primary"
411 + onPress={() =>
412 + catalogState.hasReadyEnvironment
413 + ? navigation.dispatch(StackActions.push("AddProject"))
414 + : navigation.navigate("ConnectionsNew")
415 + }
416 />
417 + </View>
418 + {canStartScratch ? (
419 + <View>
420 + <Button
421 + label="Start without a project"
422 + tone="secondary"
423 + onPress={() => void startScratch()}
424 + />
425 + </View>
426 ) : null}
427 </>
428 ) : !catalogState.hasReadyEnvironment ? (
@@ -437,11 +443,13 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
443 />
444 </View>
445 {canStartScratch ? (
440 - <Button
441 - label="Start without a project"
442 - tone="secondary"
443 - onPress={() => void startScratch()}
444 - />
446 + <View>
447 + <Button
448 + label="Start without a project"
449 + tone="secondary"
450 + onPress={() => void startScratch()}
451 + />
452 + </View>
453 ) : null}
454 </>
455 )}