@devries-cameron20 / t3code-1 / commits / 05cd55d2d0
Fork 0

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

fix(mobile): center Android composer text and pad wrapped drafts (#23829)

Alex committed Oct 22, 2026 at 21:53 UTC 05cd55d2d039e16fc87ffd25f005c74794699fd4
1 file changed +3 -2
apps/mobile/src/features/threads/ThreadComposer.tsx
+3 -2
@@ -147,7 +147,8 @@ export function useCompactComposerEditor(text: ScaledTextRole, value: string) {
147 const rowWidth = useSharedValue(0);
148 const editorX = useSharedValue(0);
149 const editorWidth = useSharedValue(0);
150 - const inset = Platform.OS === "android" ? 0 : collapsedEditorInset(text);
150 + const inset =
151 + Platform.OS === "android" ? COLLAPSED_EDITOR_DEFAULT_INSET : collapsedEditorInset(text);
152 const minimum = Math.max(INLINE_EDITOR_HEIGHT, Math.ceil(text.lineHeight) + 2 * inset);
153 const height = Math.max(
154 minimum,
@@ -216,7 +217,7 @@ export function useCompactComposerEditor(text: ScaledTextRole, value: string) {
217 }
218 },
219 editorProps: {
219 - singleLineCentered: false,
220 + singleLineCentered: !isExpanded,
221 scrollEnabled: Platform.OS === "android" || contentHeight >= text.lineHeight * 4,
222 contentInsetVertical: inset,
223 onContentSizeChange: (size: { width: number; height: number }) => {