some fixes
This commit is contained in:
@@ -89,6 +89,14 @@ function makeFieldRow(entry) {
|
||||
const label = document.createElement("label");
|
||||
label.textContent = entry.name;
|
||||
label.htmlFor = "f_" + entry.name;
|
||||
if (entry.applies_on_start) {
|
||||
// Stable run_config field: editing it here takes effect on the next pipeline start.
|
||||
const hint = document.createElement("span");
|
||||
hint.className = "on-start-hint";
|
||||
hint.textContent = " (on Start)";
|
||||
hint.title = "Applied when the pipeline next starts";
|
||||
label.appendChild(hint);
|
||||
}
|
||||
row.appendChild(label);
|
||||
|
||||
let el;
|
||||
@@ -112,6 +120,10 @@ function makeFieldRow(entry) {
|
||||
if (entry.max != null) el.max = entry.max;
|
||||
el.step = entry.kind === "float" ? (entry.step || "any") : (entry.step || 1);
|
||||
el.value = entry.value;
|
||||
} else if (entry.kind === "textarea") {
|
||||
el = document.createElement("textarea");
|
||||
el.rows = 3;
|
||||
el.value = entry.value == null ? "" : String(entry.value);
|
||||
} else {
|
||||
el = document.createElement("input");
|
||||
el.type = "text";
|
||||
|
||||
@@ -208,6 +208,21 @@ body {
|
||||
flex-shrink: 0;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
.field textarea {
|
||||
width: 160px;
|
||||
flex-shrink: 0;
|
||||
min-height: 52px;
|
||||
resize: vertical;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 7px;
|
||||
padding: 4px 7px;
|
||||
color: var(--text);
|
||||
font-family: var(--mono);
|
||||
font-size: 12px;
|
||||
}
|
||||
.field textarea:focus { outline: none; border-color: var(--accent); }
|
||||
.on-start-hint { color: var(--muted); font-size: 11px; font-style: italic; }
|
||||
|
||||
.settings-actions {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user