diff --git a/public/assets/app.css b/public/assets/app.css index db076ec..9b87fa4 100644 --- a/public/assets/app.css +++ b/public/assets/app.css @@ -182,3 +182,8 @@ html[data-theme="light"] .pulse-dim { color: var(--text-muted); } html[data-theme="light"] .pulse-running { box-shadow: none; } + +/* The `hidden` attribute must win over component display rules such as + .lt-form-group { display: flex }, or hidden sections still show (both + Quick Command worker pickers were visible in either mode). */ +[hidden] { display: none !important; } diff --git a/public/assets/pages/quick.css b/public/assets/pages/quick.css index 7e4c706..5b18915 100644 --- a/public/assets/pages/quick.css +++ b/public/assets/pages/quick.css @@ -83,3 +83,38 @@ color: var(--text-muted); font-size: 0.85em; } + +/* Results under the form, one card per worker (#5). */ +.qc-run-summary { + font-size: 0.75rem; + color: var(--text-secondary); + margin-bottom: 0.5rem; +} +.qc-run { + border: 1px solid var(--border-dim, var(--border-color)); + background: var(--bg-primary); + padding: 0.6rem 0.75rem; + margin-bottom: 0.6rem; + min-width: 0; +} +.qc-run-head { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.4rem 0.75rem; +} +.qc-run-time { color: var(--text-muted); font-size: 0.75rem; } +.qc-run-link { margin-left: auto; font-size: 0.75rem; } +.qc-run-body pre { + max-height: 24rem; + overflow: auto; + white-space: pre-wrap; + overflow-wrap: anywhere; + margin: 0.5rem 0 0; +} +.qc-out-err { + color: var(--accent-red); + border-left-color: var(--accent-red); + text-shadow: none; +} +.qc-out-note { color: var(--text-muted); font-size: 0.72rem; margin-top: 0.4rem; } diff --git a/public/assets/pages/quick.js b/public/assets/pages/quick.js index a56b228..9ebabfc 100644 --- a/public/assets/pages/quick.js +++ b/public/assets/pages/quick.js @@ -166,65 +166,117 @@ /* ------------------------------------------------------------------- Result rendering ------------------------------------------------------------------- */ - function renderSingleSuccess(executionId) { - const wrap = document.getElementById('qc-result'); - if (!wrap) return; - wrap.innerHTML = - '
' + esc(executionId) + ' | ' +
- 'view in Executions' +
- '| Worker | Result |
|---|
' + esc(e.error || 'Failed to send') + '
' + clip(r.stdout) + ''); + if (r.stderr) parts.push('
' + clip(r.stderr) + ''); + if (!r.success && r.error && !r.stderr) parts.push('
' + esc(r.error) + ''); + if (!parts.length) parts.push('