Skip to content

Commit 2b6e374

Browse files
committed
feat(output): surface the decision control at the top of Decide
1 parent fd5c5c4 commit 2b6e374

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

output-tab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
.sk-row .sub { width: 100%; color: var(--text-sub); font-size: 12px; line-height: 1.5; margin-top: 2px; }
311311

312312
/* Decision Log */
313-
.dl-block { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
313+
.dl-block { margin: 16px 0; }
314314
.dl-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
315315
.dl-choices { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
316316
.dl-btn { padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-sub); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }

output-tab.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,7 @@ function verdictDashboard(d) {
19591959
<p class="v-what">${what}</p>
19601960
<div class="v-fit fit-${fit.level}"><span class="v-chip">${esc(fit.label)}</span><span class="v-why">${esc(fit.why)}</span></div>
19611961
${line}
1962+
<div id="vd-decision-anchor"></div>
19621963
<div class="v-facts">${cells}</div>
19631964
${flags}
19641965
${entries}
@@ -2109,7 +2110,10 @@ async function renderDecisionControl(d) {
21092110
<span class="dl-saved-msg" id="dl-saved-msg"></span>
21102111
</div>
21112112
`;
2112-
host.appendChild(block);
2113+
// Anchor near the top of Decide (after fit + bottom line); fall back to host end.
2114+
const anchor = host.querySelector('#vd-decision-anchor');
2115+
if (anchor) anchor.appendChild(block);
2116+
else host.appendChild(block);
21132117

21142118
let selected = existing?.decision || null;
21152119

0 commit comments

Comments
 (0)