mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
fix: chat-input tremor during typing
Stabilization in adjustTextareaHeight() in input-store.js: after setting height from scrollHeight, we do one extra read and apply Math.max of the post-set scrollHeight and the value just assigned. This catches any layout shift triggered by the height assignment itself, so the box always lands at the correct height without oscillating. Also removed field-sizing: content from #chat-input, which was conflicting with the JS-driven height and amplifying the jumps into visible trembling.
This commit is contained in:
parent
5dac78d311
commit
a0fc9367b7
2 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,6 @@
|
|||
font-size: 0.9rem;
|
||||
max-height: clamp(7rem, 40vh, 20rem);
|
||||
min-height: 3.05rem;
|
||||
field-sizing: content;
|
||||
width: 100%;
|
||||
padding: 0.48rem 40px var(--spacing-sm) var(--spacing-sm);
|
||||
margin-right: var(--spacing-xs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue