diff --git a/apps/mobile/src/features/threads/ThreadRouteScreen.tsx b/apps/mobile/src/features/threads/ThreadRouteScreen.tsx index 2b120c8b86..78a7e225cf 100644 --- a/apps/mobile/src/features/threads/ThreadRouteScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadRouteScreen.tsx @@ -43,7 +43,7 @@ import { } from "../terminal/terminalLaunchContext"; import { terminalDebugLog } from "../terminal/terminalDebugLog"; import { ThreadDetailScreen } from "./ThreadDetailScreen"; -import { ThreadGitControls, useThreadGitRightHeaderItems } from "./ThreadGitControls"; +import { ThreadGitControls, useThreadGitCenterHeaderItems } from "./ThreadGitControls"; import { GitOverviewSheet } from "./git/GitOverviewSheet"; import { ThreadNavigationDrawer } from "./ThreadNavigationDrawer"; import { useAtomCommand } from "../../state/use-atom-command"; @@ -619,7 +619,7 @@ function ThreadRouteContent( onPull: gitActions.onPullSelectedThreadBranch, onRunAction: gitActions.onRunSelectedThreadGitAction, }; - const threadRightHeaderItems = useThreadGitRightHeaderItems(threadGitControlProps); + const threadCenterHeaderItems = useThreadGitCenterHeaderItems(threadGitControlProps); if (!environmentId || !threadId) { return ; @@ -653,6 +653,14 @@ function ThreadRouteContent( headerShadowVisible: false, }), headerTintColor: iconColor, + headerTitle: selectedThread.title, + headerTitleStyle: usesNativeHeaderGlass + ? { + fontSize: 17, + fontWeight: "800", + } + : undefined, + title: selectedThread.title, headerBackVisible: !layout.usesSplitView, headerBackTitle: "", scrollEdgeEffects: { @@ -670,22 +678,24 @@ function ThreadRouteContent( placement: "integratedButton", } : undefined, - unstable_headerRightItems: + unstable_headerCenterItems: layout.usesSplitView && Platform.OS === "ios" && !activeInspectorRenderer - ? () => threadRightHeaderItems + ? () => threadCenterHeaderItems : undefined, unstable_navigationItemStyle: usesNativeHeaderGlass ? "editor" : undefined, }} /> - - - + {layout.usesSplitView ? null : ( + + + + )}