Skip to content

fix: prevent chatbox input from hiding send button on mobile#459

Merged
zxh326 merged 1 commit intomainfrom
fix/mobile-chatbox-input
Mar 27, 2026
Merged

fix: prevent chatbox input from hiding send button on mobile#459
zxh326 merged 1 commit intomainfrom
fix/mobile-chatbox-input

Conversation

@zxh326
Copy link
Copy Markdown
Member

@zxh326 zxh326 commented Mar 27, 2026

On mobile, when the virtual keyboard opens, the textarea expands to full width and hides the send button.

Root cause: flex items have min-width: auto by default. The textarea's intrinsic minimum width prevents it from shrinking below viewport width, pushing the send button off-screen.

Fix: Add min-w-0 to the textarea so flex-1 can properly shrink it

Add min-w-0 to the textarea so flex-1 can shrink below its intrinsic
width when the virtual keyboard reduces viewport height. Without this,
the textarea expands to full width and pushes the send button off screen.
@zxh326 zxh326 merged commit 75fb64a into main Mar 27, 2026
4 checks passed
@zxh326 zxh326 deleted the fix/mobile-chatbox-input branch March 27, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant