← Back to Pull requests

fix(site): align blog reading progress with the hidden mobile header #5436

Closed
unknown closed this pull request without merging on Oct 26, 2026 15:58 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 17:29 UTC
Author

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, and npm test passed after generating API docs, refreshing the content snapshot, and building the local SDK. Human testing is not yet confirmed.

  • I ran hatch run prepare
  • Additional 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:check reports 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


  • I have read the CONTRIBUTING document

  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works

  • My change is focused and reasonably small; I have split unrelated work into separate PRs

  • I have added any necessary tests that prove my fix is effective or my feature works

  • I have updated the documentation accordingly

  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed

  • My changes generate no new warnings

  • Any dependent changes have been merged and published
  • ----

    By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

    Diff: 468 lines (+351 / -117) across 5 files Reviewer: MuonChaser Review duration: 5669m
    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
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.6% (MEDIUM) · Higher = larger blast radius
    45.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18% · Safe to merge
    18%