Support Shift+Enter for newlines in chat input

The chat field was a single-line <input>, unable to hold a line
break. Switch it to an auto-growing <textarea>: plain Enter still
sends, Shift+Enter inserts a newline.
This commit is contained in:
Moepchi committed 2026-08-02 13:55:23 +02:00
1 parent 69b256eb42
commit af3a7c97cf
2 files changed
+22 -3

No files matched your search

+5 -1
View File
@@ -645,14 +645,18 @@
border-top: 1px solid var(--border-soft);
}
.ts-chat-input-row input {
.ts-chat-input-row textarea {
flex: 1;
border: 1px solid var(--border);
border-radius: 2px;
padding: 0.3rem 0.5rem;
font-size: 12px;
font-family: inherit;
background: var(--input-bg);
color: var(--input-text);
resize: none;
max-height: 8.5em;
overflow-y: auto;
}
.ts-chat-input-row button {