diff options
| -rw-r--r-- | static/deck.css | 2 | ||||
| -rw-r--r-- | static/modules/assistant.js | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css index 8d17a66..faaf789 100644 --- a/static/deck.css +++ b/static/deck.css @@ -646,6 +646,8 @@ select { } .assistant .as-strip[hidden], .assistant .as-picking[hidden] { display: none; } .assistant .as-row { display: flex; flex-wrap: wrap; gap: 8px; } +.assistant .as-sec h3 { margin: 4px 0 0; font-size: 0.857rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-subtext0); } +.assistant .as-sec p { margin: 2px 0 0; font-size: 0.786rem; color: var(--udt-overlay0); } .assistant .as-tile { flex: none; width: 84px; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font: inherit; cursor: pointer; diff --git a/static/modules/assistant.js b/static/modules/assistant.js index 0159936..99df15b 100644 --- a/static/modules/assistant.js +++ b/static/modules/assistant.js @@ -136,7 +136,17 @@ function renderStrip(strip, st, el) { strip.firstElementChild.textContent = st.catalogError || "Loading presets…"; return; } - for (const [kind, items] of [["preset", cat.presets ?? []], ["op", cat.ops ?? []]]) { + const SECTIONS = [ + ["preset", cat.presets ?? [], "Ask the assistant", "Pick a file on the PC; the assistant answers about it here."], + ["op", cat.ops ?? [], "Convert files", "Pick files on the PC; the result is saved in its output folder."], + ]; + for (const [kind, items, title, hint] of SECTIONS) { + const head = document.createElement("div"); + head.className = "as-sec"; + head.innerHTML = `<h3></h3><p></p>`; + head.firstElementChild.textContent = title; + head.lastElementChild.textContent = hint; + strip.append(head); const row = document.createElement("div"); row.className = `as-row ${kind}`; for (const item of items) { |
