From 56e952c7645983edfab58e02fec145e0c670a42b Mon Sep 17 00:00:00 2001 From: flamboh Date: Tue, 27 Oct 2026 18:05:01 +0000 Subject: [PATCH 1/2] fix(mobile): switching pull request tabs no longer jumps the page Co-authored-by: Claude Opus 5.5 --- .../src/features/pull-requests/PullRequestRouteScreen.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx b/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx index b3094f648b5c..2760f9f9460b 100644 --- a/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx +++ b/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx @@ -393,7 +393,8 @@ export function PullRequestRouteScreen({ route }: StaticScreenProps Date: Tue, 27 Oct 2026 18:45:19 +0000 Subject: [PATCH 2/2] fix(mobile): Android PR tabs use their own top edge, not the status bar inset Android lists start below the header and get no automatic insets, so subtracting the safe-area insets put headerEnd 50pt early and capped short tabs below it. Switching from the switcher's edge dropped the page, and the files jump stopped short. --- .../pull-requests/PullRequestRouteScreen.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx b/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx index 2760f9f9460b..5463542d24cf 100644 --- a/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx +++ b/apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx @@ -341,6 +341,8 @@ export function PullRequestRouteScreen({ route }: StaticScreenProps({ tab: "overview", - offset: -insets.top, + offset: -barInsets.top, }); const bodyY = useRef(0); const [headerHeight, setHeaderHeight] = useState(0); @@ -386,9 +388,9 @@ export function PullRequestRouteScreen({ route }: StaticScreenProps { scrollViews.current.overview?.scrollToOffset({ - offset: bodyY.current + filesY.current - insets.top, + offset: bodyY.current + filesY.current - barInsets.top, animated: true, }); pendingFilesJump.current = false; @@ -676,7 +678,7 @@ export function PullRequestRouteScreen({ route }: StaticScreenProps