@devries-cameron20 / t3code-1 / commits / 89fe509232
Fork 0

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

fix(mobile): the iPhone Duo's inspector panes use the full column (#23150)

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

Julius Marminge committed Oct 21, 2026 at 17:58 UTC 89fe509232e787b51d0cf695861afe73316ce85b
7 files changed +32 -34
apps/mobile/src/features/files/thread-file-navigator-pane.tsx
+2 -1
@@ -21,6 +21,7 @@ import { useEnvironmentQuery } from "../../state/query";
21 import { useEnvironmentPresentation } from "../../state/presentation";
22 import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
23 import { FileTreeBrowser } from "./FileTreeBrowser";
24 +import { NativeInspectorContent } from "../../native/NativeInspectorContent";
25 import { useFileTreeEntries } from "./useFileTreeEntries";
26 import { preloadWorkspaceFileContents } from "./preload-workspace-file";
27 import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout";
@@ -120,7 +121,7 @@ export function ThreadFileNavigatorPane(props: {
121 scrollEdgeEffects={headerScrollEdgeEffects}
122 style={{ backgroundColor: sheetColor, flex: 1 }}
123 >
123 - {fileTree}
124 + <NativeInspectorContent>{fileTree}</NativeInspectorContent>
125 <ScreenStackHeaderConfig
126 backgroundColor="rgba(0,0,0,0)"
127 color={foregroundColor}
apps/mobile/src/features/layout/createWorkspaceStackNavigator.ios.tsx
+3 -1
@@ -305,7 +305,9 @@ function WorkspaceColumns(
305 </Split.Column>
306 <Split.Inspector>
307 <Split.HeaderConfig hidden />
308 - <ColumnContent>
308 + {/* Inspector panes host their own native stacks, which UIKit insets for the Duo's
309 + vertical bar wherever they sit, so each pane insets its own content instead. */}
310 + <ColumnContent insetHorizontally={false}>
311 <View className="flex-1 bg-screen">{inspector.render?.()}</View>
312 </ColumnContent>
313 </Split.Inspector>
apps/mobile/src/features/review/ReviewSheet.tsx
+4 -12
@@ -30,6 +30,7 @@ import {
30 } from "react-native";
31 import { useSafeAreaInsets } from "react-native-safe-area-context";
32 import { useNativeColumnLayoutMetrics } from "../../native/native-layout-metrics";
33 +import { NativeInspectorContent } from "../../native/NativeInspectorContent";
34
35 import { AppText as Text } from "../../components/ui/AppText";
36 import { SymbolView } from "../../components/ui/AppSymbol";
@@ -40,7 +41,6 @@ import { environmentCatalog } from "../../connection/catalog";
41 import { useEnvironmentPresentation } from "../../state/presentation";
42 import { useAtomCommand } from "../../state/use-atom-command";
43 import { useUniwindTheme } from "../../lib/useUniwindTheme";
43 -import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
44 import { useThreadDraftForThread } from "../../state/use-thread-composer-state";
45 import { EnvironmentConnectionNotice } from "../connection/EnvironmentConnectionNotice";
46 import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
@@ -307,7 +307,6 @@ function ReviewFileNavigator({
307 onSelectFile,
308 ref,
309 }: ReviewFileNavigatorProps) {
310 - const insets = useSafeAreaInsets();
310 const theme = useUniwindTheme();
311 const sheetColor = theme["--color-sheet"];
312 const foregroundColor = theme["--color-foreground"];
@@ -359,15 +358,8 @@ function ReviewFileNavigator({
358 data={files}
359 extraData={selectedFileId}
360 keyExtractor={(file) => file.id}
362 - contentContainerStyle={{
363 - paddingHorizontal: 8,
364 - paddingBottom: 8,
365 -
366 - paddingTop: Platform.OS === "ios" ? insets.top + IOS_NAV_BAR_HEIGHT + 8 : 8,
367 - }}
368 - scrollIndicatorInsets={
369 - Platform.OS === "ios" ? { top: insets.top + IOS_NAV_BAR_HEIGHT } : undefined
370 - }
361 + contentInsetAdjustmentBehavior={Platform.OS === "ios" ? "automatic" : "never"}
362 + contentContainerStyle={{ paddingHorizontal: 8, paddingVertical: 8 }}
363 renderItem={renderFile}
364 />
365 );
@@ -384,7 +376,7 @@ function ReviewFileNavigator({
376 scrollEdgeEffects={headerScrollEdgeEffects}
377 style={{ backgroundColor: sheetColor, flex: 1 }}
378 >
387 - {fileList}
379 + <NativeInspectorContent>{fileList}</NativeInspectorContent>
380 <ScreenStackHeaderConfig
381 backgroundColor="rgba(0,0,0,0)"
382 color={foregroundColor}
apps/mobile/src/features/threads/git/GitOverviewSheet.tsx
+2 -2
@@ -20,7 +20,7 @@ import { Platform, Pressable, RefreshControl, ScrollView, View } from "react-nat
20
21 import { ScreenStack } from "react-native-screens";
22 import { useSafeAreaInsets } from "react-native-safe-area-context";
23 -import { NativeSheetContent } from "../../../native/NativeSheetContent";
23 +import { NativeInspectorContent } from "../../../native/NativeInspectorContent";
24 import { NativeHeader, NativeScreen } from "../../../native/ThemedScreenStack";
25 import {
26 AndroidHeaderIconButton,
@@ -349,7 +349,7 @@ function GitOverviewSheetContent(props: GitOverviewSheetProps) {
349 scrollEdgeEffects={HEADER_SCROLL_EDGE_EFFECTS}
350 className="flex-1 bg-sheet"
351 >
352 - <NativeSheetContent>{content}</NativeSheetContent>
352 + <NativeInspectorContent>{content}</NativeInspectorContent>
353 <NativeHeader
354 backgroundColor="rgba(0,0,0,0)"
355 tintColorClassName="accent-foreground"
apps/mobile/src/features/threads/thread-inspector-content-stack.tsx
+4 -1
@@ -2,6 +2,7 @@ import { useEffect, useState, type ReactNode } from "react";
2 import { View } from "react-native";
3
4 import { RenderErrorBoundary, RenderFailureView } from "../../components/RenderErrorBoundary";
5 +import { NativeInspectorContent } from "../../native/NativeInspectorContent";
6
7 export type ThreadInspectorMode = "route" | "git" | "files";
8
@@ -33,7 +34,9 @@ function InspectorContentPane(props: {
34 <RenderErrorBoundary
35 resetKeys={props.resetKeys}
36 renderFallback={(fallback) => (
36 - <RenderFailureView {...fallback} title="The inspector couldn't be displayed" />
37 + <NativeInspectorContent>
38 + <RenderFailureView {...fallback} title="The inspector couldn't be displayed" />
39 + </NativeInspectorContent>
40 )}
41 >
42 {props.children}
apps/mobile/src/native/NativeInspectorContent.tsx new
+17
@@ -0,0 +1,17 @@
1 +import type { ReactNode } from "react";
2 +import { SafeAreaView } from "react-native-safe-area-context";
3 +
4 +import { useNativeWorkspaceColumnsSupported } from "./NativeWorkspaceColumns";
5 +
6 +// Pads with the inspector column's insets, which the column leaves to its panes so their
7 +// native headers lay out against the vertical bar themselves.
8 +export function NativeInspectorContent(props: { readonly children: ReactNode }) {
9 + const usesNativeWorkspaceColumns = useNativeWorkspaceColumnsSupported();
10 + if (!usesNativeWorkspaceColumns) return <>{props.children}</>;
11 +
12 + return (
13 + <SafeAreaView edges={["left", "right"]} style={{ flex: 1 }}>
14 + {props.children}
15 + </SafeAreaView>
16 + );
17 +}
apps/mobile/src/native/NativeSheetContent.tsx deleted
-17
@@ -1,17 +0,0 @@
1 -import type { ReactNode } from "react";
2 -import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
3 -
4 -import { useNativeWorkspaceColumnsSupported } from "./NativeWorkspaceColumns";
5 -
6 -export function NativeSheetContent(props: { readonly children: ReactNode }) {
7 - const usesNativeWorkspaceColumns = useNativeWorkspaceColumnsSupported();
8 - if (!usesNativeWorkspaceColumns) return <>{props.children}</>;
9 -
10 - return (
11 - <SafeAreaProvider style={{ flex: 1 }}>
12 - <SafeAreaView edges={["left", "right"]} style={{ flex: 1 }}>
13 - {props.children}
14 - </SafeAreaView>
15 - </SafeAreaProvider>
16 - );
17 -}