Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Prevent Add Project sheet from collapsing on relayout (#3759)

Julius Marmingef9727d08533c
diff --git a/apps/mobile/src/features/projects/AddProjectScreen.tsx b/apps/mobile/src/features/projects/AddProjectScreen.tsx
index 841b96f70..58fc10529 100644
--- a/apps/mobile/src/features/projects/AddProjectScreen.tsx
+++ b/apps/mobile/src/features/projects/AddProjectScreen.tsx
@@ -112,7 +112,12 @@ function AddProjectShell(props: { readonly children: ReactNode }) {
const insets = useSafeAreaInsets();
return (
- <View className="flex-1 bg-sheet">
+ // collapsable={false} is load-bearing: if this wrapper is flattened, the
+ // ScrollView lands directly under RNSSafeAreaView and RNS's formSheet
+ // scroll-view frame correction mistakes this full-height wrapper for a
+ // "header" sibling, coercing the ScrollView to zero height (blank sheet
+ // as soon as the sheet re-lays-out, e.g. when the keyboard opens).
+ <View collapsable={false} className="flex-1 bg-sheet">
<ScrollView
keyboardShouldPersistTaps="handled"
contentInsetAdjustmentBehavior="automatic"