GeezerVison is showing github.com — fix(mobile): center the Choose project empty-state buttons (#27450) · adampeterhiggins/t3code@25bf84a
File tree
Expand file treeCollapse file tree
Open diff view settings
apps/mobile/src/features/threads
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/NewTaskRouteScreen.tsx +26-18Lines changed: 26 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -402,21 +402,27 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara |
402 | 402 | </Text> |
403 | 403 | {Platform.OS === "android" ? ( |
404 | 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> |
415 | 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 | + } |
419 | 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> |
420 | 426 | ) : null} |
421 | 427 | </> |
422 | 428 | ) : !catalogState.hasReadyEnvironment ? ( |
@@ -437,11 +443,13 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara |
437 | 443 | /> |
438 | 444 | </View> |
439 | 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> |
445 | 453 | ) : null} |
446 | 454 | </> |
447 | 455 | )} |
|