Skip to content

Commit 8c94c61

Browse files
committed
fix(mobile): pad scroll views above Android nav bar
The Choose project and Connections screens set their bottom spacing via the ScrollView contentInset prop, which is iOS-only and a no-op on Android. With edge-to-edge always on, the last row rendered under the 3-button navigation bar and could not be scrolled into view. Move the inset-aware spacing into contentContainerStyle.paddingBottom, matching the pattern already used by AddProjectScreen and the settings screens. Fixes #5414
1 parent aa16c18 commit 8c94c61

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/mobile/src/features/connection/ConnectionsRouteScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export function ConnectionsRouteScreen() {
5858
contentInsetAdjustmentBehavior="automatic"
5959
showsVerticalScrollIndicator={false}
6060
className="flex-1"
61-
contentInset={{ bottom: Math.max(insets.bottom, 18) + 18 }}
6261
contentContainerStyle={{
62+
paddingBottom: Math.max(insets.bottom, 18) + 18,
6363
paddingHorizontal: 20,
6464
paddingTop: 16,
6565
}}

‎apps/mobile/src/features/threads/NewTaskRouteScreen.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,9 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
235235
contentInsetAdjustmentBehavior="automatic"
236236
showsVerticalScrollIndicator={false}
237237
className="flex-1"
238-
contentInset={{ bottom: Math.max(insets.bottom, 18) + 18 }}
239238
contentContainerStyle={{
240239
gap: 12,
241-
paddingBottom: 8,
240+
paddingBottom: Math.max(insets.bottom, 18) + 18,
242241
paddingHorizontal: 20,
243242
paddingTop: 8,
244243
}}

0 commit comments

Comments
 (0)