Repository navigation
S339: a tapped question stays put when the open answer above it closes - #63
Conversation
Preston, 2026-11-23: open "Why Winters Code?" on the home page, tap any other question, and the page shoots to the bottom. One-open-at-a-time folds (<details name>) close the open one when another opens; when the one that closes sits above, everything below moves up by its height (993px on a 390 phone, 623px at 1280; /faq 1,019px). src/lib/hold-accordion.ts opens the tapped one itself and scrolls by however far its summary moved, in one task. Home and /faq now move 0 to 1px in Chromium. Every Fold group and the home answers use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu
Captured at 6b6f4eb with golden.py capture --update. The chore prefix keeps this commit off /changelog, so the manifest still matches once it lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
scripts/audit/accordion-jump-test.cjs opens the first fold in a set, taps each later one and reports how far the tapped question moved; exit 1 over 4px. Live winterscode.com home: 993px at 390, 623px at 1280, exit 1. Preview with hold-accordion: 0px, exit 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu
Captured at ae1dbcb with golden.py capture --update. The chore prefix keeps this commit off /changelog, so the manifest still matches once it lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Preston, 2026-11-23: open "Why Winters Code?" on the home page, tap any other question, and the page shoots to the bottom.
Cause: one-open-at-a-time folds (
<details name>) close the open one when another opens. When the one that closes sits above the tapped one, everything below moves up by its height, and the browser's scroll anchoring misses it because its anchor was inside the answer that closed.Fix:
src/lib/hold-accordion.ts, loaded by Fold and the home answers. On a tap that opens a closed item in a named set, it opens the item itself and scrolls by however far the tapped summary moved, in one task, so no frame paints in between. Closing taps, unnamed folds and no-JavaScript visits keep the browser's behavior. Keyboard Enter and Space arrive as clicks and take the same path.Measured (tapped summary's move on screen, after opening the first item; WebKit, which is Safari's engine, and Chromium):
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu