TypeScript
fix(mobile): Android thread pane no longer ends short after switching threads (#18963)
Alex4ac8fa41625c
diff --git a/apps/mobile/src/Stack.tsx b/apps/mobile/src/Stack.tsxindex c35d9911ca4..5763f8f2d2f 100644--- a/apps/mobile/src/Stack.tsx+++ b/apps/mobile/src/Stack.tsx@@ -169,7 +169,9 @@ const GLASS_HEADER_OPTIONS: AppScreenOptions = {unstable_navigationItemStyle: NATIVE_LIQUID_GLASS_SUPPORTED ? "editor" : undefined,};-const PULL_REQUEST_HEADER_OPTIONS: AppScreenOptions = {+// Hiding Android's native header after mount can leave detail panes measured short.+// These screens render their own Material toolbar, so hide it from the first layout.+const DETAIL_HEADER_OPTIONS: AppScreenOptions = {...GLASS_HEADER_OPTIONS,headerShown: Platform.OS !== "android",};@@ -704,15 +706,15 @@ const RootStackConfig = createWorkspaceStackNavigator({path: "pull-requests/:environmentId/:projectId/:repository/:number",parse: { number: Number },},- options: PULL_REQUEST_HEADER_OPTIONS,+ options: DETAIL_HEADER_OPTIONS,}),PullRequestGuideStop: createNativeStackScreen({screen: PullRequestGuideStopScreen,- options: PULL_REQUEST_HEADER_OPTIONS,+ options: DETAIL_HEADER_OPTIONS,}),PullRequestFile: createNativeStackScreen({screen: PullRequestFileRouteScreen,- options: PULL_REQUEST_HEADER_OPTIONS,+ options: DETAIL_HEADER_OPTIONS,}),PullRequestFiles: createNativeStackScreen({screen: PullRequestFilesRouteScreen,@@ -726,7 +728,7 @@ const RootStackConfig = createWorkspaceStackNavigator({PullRequestReviewers: createNativeStackScreen({screen: PullRequestReviewersScreen,options: {- ...PULL_REQUEST_HEADER_OPTIONS,+ ...DETAIL_HEADER_OPTIONS,...FORM_SHEET_PRESENTATION_OPTIONS,sheetAllowedDetents: [0.75, 0.92],sheetGrabberVisible: true,@@ -735,7 +737,7 @@ const RootStackConfig = createWorkspaceStackNavigator({}),PullRequestDiscussion: createNativeStackScreen({screen: PullRequestDiscussionScreen,- options: PULL_REQUEST_HEADER_OPTIONS,+ options: DETAIL_HEADER_OPTIONS,}),PullRequestInlineComment: createNativeStackScreen({screen: PullRequestInlineCommentScreen,@@ -760,7 +762,7 @@ const RootStackConfig = createWorkspaceStackNavigator({Thread: createNativeStackScreen({screen: ThreadRouteScreen,linking: THREAD_LINKING_PREFIX,- options: GLASS_HEADER_OPTIONS,+ options: DETAIL_HEADER_OPTIONS,}),ThreadTerminal: createNativeStackScreen({screen: ThreadTerminalRouteScreen,