From 5aebb418df684ca55dadb66d93dfb437feda2065 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sat, 10 Jan 2026 23:47:37 +0700 Subject: [PATCH] fix(app): auto-grow text input on iOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove explicit height style on iOS TextInput - only use minHeight/maxHeight to allow native auto-sizing. Web still uses explicit height for controlled sizing via onContentSizeChange measurement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- packages/app/src/components/message-input.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/app/src/components/message-input.tsx b/packages/app/src/components/message-input.tsx index 92e3092ba..d001f01e1 100644 --- a/packages/app/src/components/message-input.tsx +++ b/packages/app/src/components/message-input.tsx @@ -491,14 +491,19 @@ export const MessageInput = forwardRef( placeholderTextColor={theme.colors.mutedForeground} style={[ styles.textInput, - { - height: inputHeight, - minHeight: MIN_INPUT_HEIGHT, - maxHeight: MAX_INPUT_HEIGHT, - }, + IS_WEB + ? { + height: inputHeight, + minHeight: MIN_INPUT_HEIGHT, + maxHeight: MAX_INPUT_HEIGHT, + } + : { + minHeight: MIN_INPUT_HEIGHT, + maxHeight: MAX_INPUT_HEIGHT, + }, ]} multiline - scrollEnabled={inputHeight >= MAX_INPUT_HEIGHT} + scrollEnabled={IS_WEB ? inputHeight >= MAX_INPUT_HEIGHT : true} onContentSizeChange={handleContentSizeChange} editable={!isDictating && isConnected && !disabled} onKeyPress={