some fixes

This commit is contained in:
Ayzen
2026-06-06 01:42:18 +03:00
parent 69a96e4c26
commit b3a8cd834f
7 changed files with 238 additions and 89 deletions
+12
View File
@@ -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";
+15
View File
@@ -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;