fix(webui): stabilize thread during IME input

This commit is contained in:
chengyongru
2026-08-03 16:41:08 +08:00
committed by chengyongru
parent ac216c3e94
commit eeecfac538
4 changed files with 73 additions and 0 deletions
@@ -1799,6 +1799,7 @@ export function ThreadComposer({
};
const onInput: React.FormEventHandler<HTMLTextAreaElement> = (e) => {
if ((e.nativeEvent as InputEvent).isComposing) return;
const el = e.currentTarget;
el.style.height = "auto";
el.style.height = `${Math.min(el.scrollHeight, 260)}px`;