Files
openidea/src/workbench/inputDialogs.module.css
arookieofc 2945d20208 feat(plugin): multi-line text input via ui.input-multiline (#1968)
* feat(plugin): multi-line text input via ui.input-multiline

Adds host::input_multiline: a multi-line text dialog pre-filled with a
value, dismissed to none, confirmed with Cmd/Ctrl+Enter. Same rules as
input (command or event of a window, no capability, wait not charged).

Prompt::Input gains a multiline flag the frontend renders as a
textarea; the jobs fixture, SDK (wasm + mock), WIT and the plugin API
table are updated, and all plugin wasms rebuilt.

Fixes #1946

* chore: regenerate bindings after merging detail-provider rename
2026-11-07 19:58:32 +08:00

63 lines
1.2 KiB
CSS

.form {
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
}
.label {
color: var(--fg-secondary);
font-size: var(--fs-small);
}
.error {
color: var(--danger);
font-size: var(--fs-small);
}
.hint {
color: var(--fg-subtle);
font-size: var(--fs-small);
line-height: 1.5;
}
.list {
height: 200px;
border: 1px solid var(--border);
border-radius: var(--radius-control, 4px);
}
.row,
.activeRow {
padding: 0 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.activeRow {
color: var(--fg-strong);
}
.area {
resize: vertical;
min-height: 60px;
max-height: 240px;
padding: 4px 8px;
border: 0;
border-radius: var(--radius-control, 4px);
background: var(--bg-field, var(--bg-button));
box-shadow: inset 0 0 0 1px var(--border-button);
color: var(--fg-strong);
font-family: inherit;
font-size: var(--fs-ui);
line-height: 20px;
outline: none;
}
.area:focus {
box-shadow:
inset 0 0 0 1px var(--focus-ring),
0 0 0 1px var(--focus-ring);
}
.area[aria-invalid="true"] {
box-shadow:
inset 0 0 0 1px var(--danger),
0 0 0 1px var(--danger);
}
.area::placeholder {
color: var(--fg-faint);
}