From e56e63b1f55fcd2082c4bf55f6fd336c359bfc90 Mon Sep 17 00:00:00 2001 From: tegwick Date: Thu, 26 Feb 2026 13:29:34 +0100 Subject: [PATCH] dashboard: move Decision Health card into TOC sidebar column Inject the KPI box into #observablehq-toc (the framework's right-column aside) instead of position:fixed. The TOC column already doesn't scroll, so no CSS tricks are needed. Falls back to a float:right inline block if the TOC element is absent. - Remove .kpi-sidebar-outer and its fixed positioning - Remove min-width/max-width from .kpi-infobox; add margin-bottom to separate it from the TOC links below Co-Authored-By: Claude Sonnet 4.6 --- dashboard/src/decisions.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/dashboard/src/decisions.md b/dashboard/src/decisions.md index 72abba1..c186425 100644 --- a/dashboard/src/decisions.md +++ b/dashboard/src/decisions.md @@ -150,8 +150,10 @@ const _kpiBox = html`
withDocHelp(_kpiBox, "/docs/decisions-kpi"); -// ── Fixed sidebar — stays in viewport top-right corner while scrolling ────── -display(html`
${_kpiBox}
`); +// ── Inject into the TOC sidebar (right column, non-scrolling) ─────────────── +const _toc = document.querySelector("#observablehq-toc"); +if (_toc) _toc.prepend(_kpiBox); +else display(html`
${_kpiBox}
`); ``` ```js @@ -353,15 +355,6 @@ if (escalated.length > 0) { ```