From 4c6ef8a492b8c11d14189a82559a4edf5b9106d4 Mon Sep 17 00:00:00 2001
From: Fiber <48828021+leafliber@users.noreply.github.com>
Date: Sat, 11 Jul 2026 22:46:55 +0800
Subject: [PATCH] fix: resolve mobile chat input freeze and multiline
attachment button alignment (#9202)
* fix: resolve mobile chat input freeze caused by autoResize oscillation
The autoResize() function in ChatInput.vue used minHeight + 8 as the
threshold to decide whether to switch from multi-line (textarea) back
to single-line (input). On mobile viewports (max-width: 768px), the
textarea's 2-line scrollHeight is below minHeight + 8 due to smaller
line-height and padding, causing an infinite oscillation loop between
and