From 6b6f4ebd303eaec0ddccb8a69d6bc81871b19613 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Nov 2026 20:27:37 +0000 Subject: [PATCH 1/4] S339: a tapped question stays put when the open answer above it closes 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 (
) 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 Claude-Session: https://claude.ai/code/session_01Xu6AcwHo9DHh4ZxeYKVcnu --- src/components/home/StraightAnswers.astro | 5 +++ src/components/ui/Fold.astro | 3 ++ src/lib/hold-accordion.ts | 43 +++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 src/lib/hold-accordion.ts diff --git a/src/components/home/StraightAnswers.astro b/src/components/home/StraightAnswers.astro index 832f71b..3eaf931 100644 --- a/src/components/home/StraightAnswers.astro +++ b/src/components/home/StraightAnswers.astro @@ -76,6 +76,11 @@ const QUESTIONS: { q: string; a: string[]; why?: boolean; link?: { href: string; + +