Skip to content

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

Closed
zxh326 wants to merge 2 commits intomainfrom
fix/mobile-chatbox-input-overflow
Closed

fix: prevent chatbox input from hiding send button on mobile#458
zxh326 wants to merge 2 commits intomainfrom
fix/mobile-chatbox-input-overflow

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.

zxh326 added 2 commits March 28, 2026 01:12
Signed-off-by: Zzde <zhangxh1997@gmail.com>
(cherry picked from commit d7630ae297575f73d44f7f702ee835c967733940)
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 closed this Mar 27, 2026
@zxh326 zxh326 deleted the fix/mobile-chatbox-input-overflow branch March 27, 2026 17:59
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