fix(site): align blog reading progress with the hidden mobile header #5436
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 468 lines diff across 5 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.368
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5436"
general
weight: 0.35
MuonChaser
Human Overview
The blog reading-progress bar kept its header-height offset after the mobile header disappeared, leaving it over the article. This fix makes the bar follow the header’s visible edge as it hides and returns, while preserving desktop positioning, embed behavior, and reduced-motion support.
Description
The bar follows the site’s existing compact-header visibility state and motion preferences.
AI disclosure: Codex drafted the overview and implemented and browser-tested this change. The author approved the overview and confirmed line-by-line review.
Related Issues
Resolves #5420
Documentation PR
No prose or API changes are needed for this blog layout fix.
Type of Change
Bug fix
Testing
Agent validation: real Astro blog route in Chromium at 320×640, 390×844, 1280×900, and 1024×400 in light and dark themes; down/up scrolling, resize, embed, and reduced motion. The regression failed before the fix (header bottom 0px, bar top 60px) and passed afterward.
npm run cms:build,npm run typecheck,npm run typecheck:snippets, andnpm testpassed after generating API docs, refreshing the content snapshot, and building the local SDK. Human testing is not yet confirmed.hatch run prepareAdditional Details
Visual verification
Same blog route, 390×844 viewport, scroll position 1800px. When the header hides, its bottom is 0px; the progress bar moves from the stale 60px offset to 0px. Scrolling up restores both edges to 60px.
| Before | After |
| --- | --- |
| !Before: progress bar overlays article at 60px | !After: progress bar follows the viewport top |
More screenshots, commands, and complete local test logs include dark mode, desktop, reverse scrolling, resize, embed mode, and reduced motion. Production browser log; full local checks: build and link checks passed, site/snippet typechecks passed, 653 tests passed and 2 skipped.
<details>
<summary>Validation context</summary>
npm run format:checkreports six unchanged documentation snippet files on the base and patched tree. Browser verification was performed with a standalone local runner; the browser test, test command, and Playwright dependency have been removed from this PR as requested. The submitted change is limited to the blog layout CSS, and the screenshots and test logs above remain available as validation evidence.</details>
Checklist
----
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.