ndg-templates: hide the sidebar on narrow windows #313
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 171 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.308
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #313"
general
weight: 0.35
NotAShelf
On a window from 801px to 1399px wide, the fixed 300px sidebar covers part of the centered content, which is at most 800px wide. For example, this occurs on a window that uses a third of the screen.
Changes
<head>script of each template applies this before paint, so the sidebar does not show for a moment on load.sidebar-collapsedstate applies only to wider windows. A toggle on a narrow window does not change it. When the window width crosses 1400px, the sidebar changes between the two states.The content does not move to make space for the sidebar, as 4fe9219fd keeps the content fixed when the sidebar toggles.
Testing
deno test crates/ndg-templates/templates/: a new test covers the narrow start, the hide on a link or outside click, and the change to a wide window.Assisted-by: Claude:claude-opus-5-5
https://claude.ai/code/session_01PtHs6KuPkFpysndneyWcaW