dashboard: themedPrompt is a textarea — Enter submits, Shift+Enter newline
The approval deny-reason prompt (and every themedPrompt dialog) used a single-line input. Make themedPrompt always a resizable <textarea> with chat-box keys: Enter submits (clicks the confirm button), Shift+Enter inserts a newline. Short answers stay one keystroke; multi-line reasons (e.g. a deny note) are now possible. No single-line variant — themedPrompt is only used by the data-async data-prompt path, so all those dialogs get the textarea. Closes #1840.
This commit is contained in:
parent
0df52806f9
commit
08afa49c96
2 changed files with 23 additions and 3 deletions
|
|
@ -481,6 +481,14 @@ body.dashboard-shell {
|
|||
padding: 0.4em 0.6em;
|
||||
}
|
||||
.tc-input:focus { outline: 1px solid var(--green); }
|
||||
/* themedPrompt's field is always a resizable textarea (Enter submits,
|
||||
Shift+Enter inserts a newline) — sensible min-height, wrapped output. */
|
||||
.tc-textarea {
|
||||
resize: vertical;
|
||||
min-height: 4.5em;
|
||||
line-height: 1.4;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
/* themedToast — non-blocking transient notifications (errors/info/ok) */
|
||||
.tc-toasts {
|
||||
|
|
|
|||
Loading…
Reference in a new issue