Skip to content

S339: a tapped question stays put when the open answer above it closes - #63

Merged
Preston2012 merged 4 commits into
mainfrom
claude/accordion-hold
Nov 23, 2026
Merged

Preston2012 merged 4 commits into
mainfrom
claude/accordion-hold

Conversation

@Preston2012

Copy link
Copy Markdown
Owner

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):

  • Home, live before: 993px at 390, 623px at 1280, both engines. Preview after: 0px.
  • /faq, /services (sv-faq), /web-design-coos-bay (loc-faq), /services/web-design (svc-faq) on the preview: 0 to 1px in both engines, exactly one item open every time.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu

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
@Preston2012

Copy link
Copy Markdown
Owner Author

@codex review

Head dd6ed35

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T20:46:38.035870Z 5cadff9 Manual request
🔒 Security Review ✅ Completed 2026-11-23T20:47:50.246671Z 5cadff9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: dd6ed35025

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: dd6ed35025

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

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
@Preston2012

Copy link
Copy Markdown
Owner Author

@codex review

Head 5cadff9

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 5cadff97d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 5cadff97d0

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Preston2012
Preston2012 merged commit 6878c17 into main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants