Skip to content
TypeScript

fix(mobile): iOS terminal's Attach visible output clears the home indicator (#22418)

Claudesaul706bf34621a3
diff --git a/apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx b/apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx
index a2a2450864e..016b75cfb30 100644
--- a/apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx
+++ b/apps/mobile/src/features/terminal/ThreadTerminalRouteScreen.tsx
@@ -976,7 +976,14 @@ function ThreadTerminal(props: {
KeyboardController.dismiss();
requestCapture();
}}
- className="px-4 py-2"
+ className="px-4 pt-2"
+ style={{
+ paddingBottom:
+ 8 +
+ (keyboardState.isVisible
+ ? 0
+ : (nativeColumnMetrics?.safeArea.bottom ?? insets.bottom)),
+ }}
>
<Text style={{ color: terminalTheme.foreground }}>Attach visible output</Text>
</Pressable>