mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
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:
1 parent
69b256eb42
commit
af3a7c97cf
2 files changed
+22
-3
No files matched your search
+5
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user