@devries-cameron20 / t3code Mirror · read-only / commits / 6318bfc597
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 19:30 UTC

fix(mobile): new-thread heading clears the iPad header (#23206)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 21, 2026 at 19:05 UTC 6318bfc597e544679848c4ed816606bacd32a175
1 file changed +9 -2
apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
+9 -2
@@ -21,7 +21,8 @@ import {
21 usePreventRemove,
22 type NavigationAction,
23 } from "@react-navigation/native";
24 -import { useEffect, useEffectEvent, useLayoutEffect, useRef, useState } from "react";
24 +import { HeaderHeightContext } from "@react-navigation/elements";
25 +import { useContext, useEffect, useEffectEvent, useLayoutEffect, useRef, useState } from "react";
26 import { Platform, Pressable, ScrollView, View } from "react-native";
27 import {
28 KeyboardController,
@@ -214,6 +215,9 @@ export function NewTaskDraftScreen(props: {
215 reserveShare,
216 } = useIncomingShare();
217 const insets = useSafeAreaInsets();
218 + // The iOS glass header floats over the hero, and its height differs between an
219 + // iPhone sheet and an iPad column that also carries the status bar.
220 + const navigationHeaderHeight = useContext(HeaderHeightContext) ?? insets.top + 56;
221 const isKeyboardVisible = useKeyboardState((state) => state.isVisible);
222 const controlsBottomPadding = Math.max(insets.bottom, 10);
223 const keyboardOpenedOffset = Math.max(0, controlsBottomPadding - 8);
@@ -1550,7 +1554,10 @@ export function NewTaskDraftScreen(props: {
1554 alwaysBounceVertical={isKeyboardVisible}
1555 className="flex-1"
1556 contentInsetAdjustmentBehavior="never"
1553 - contentContainerClassName="grow items-center pb-[236px] pt-12 ios:pt-[72px]"
1557 + contentContainerClassName="grow items-center pb-[236px] pt-12"
1558 + contentContainerStyle={
1559 + Platform.OS === "ios" ? { paddingTop: navigationHeaderHeight + 16 } : undefined
1560 + }
1561 keyboardDismissMode={Platform.OS === "ios" ? "interactive" : "on-drag"}
1562 keyboardShouldPersistTaps="handled"
1563 showsVerticalScrollIndicator={false}