Skip to content

fix(book review): scroll long page and problem lists - #58

Open
patriksimms wants to merge 2 commits into
mainfrom
fix/review-sidebar-scroll
Open

fix(book review): scroll long page and problem lists#58
patriksimms wants to merge 2 commits into
mainfrom
fix/review-sidebar-scroll

Conversation

@patriksimms

Copy link
Copy Markdown
Owner

Problem

As an organizer reviewing a book with many responses I could not reach the pages and problems below the fold: the Page order and Problems panels stopped at their maximum height and simply cut everything off, with no scrollbar and no way to scroll.

Closes #55

Solution

The scroll area's viewport grew to its full content height, so it never became a scroll container and the surrounding card just clipped the overflow. The viewport now inherits the max height set on the scroll area root, so it scrolls as intended.

Measured on the book review page with 17 pages, viewport clientHeight / scrollHeight:

Panel Before After
Page order 1114 / 1114 (no scroll) 620 / 1114 (scrolls)
Problems 2270 / 2270 (no scroll) 620 / 2270 (scrolls)

Page order

Before After

Problems

Before After

Scope

In scope: the shared scroll area wrapper, which both book review panels use.
Out of scope: changing the 620 px panel height or making the panels sticky.

Validation

format:check, lint, typecheck, test locally; full verify in CI. No automated test added: the defect is a CSS constraint that only reproduces under real layout, and the demo seed has too few pages to overflow the panels, so proving it would mean reshaping the shared e2e fixture for one assertion. The measured before/after numbers above are the evidence instead.

No changes outside the repository are required.


Made with Claude Opus 5 (1M context) in Claude Code.

patriksimms and others added 2 commits August 18, 2026 23:18
The page order and problems panels stopped at their max height and hid
everything below it: the scroll viewport grew to its content height, so
the card clipped the overflow and no scrollbar ever appeared.

Let the viewport inherit the max height set on the scroll area root, so
it becomes the scroll container.

Closes #55

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
AI-Assisted-By: Codex
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
AI-Assisted-By: Codex
@patriksimms

Copy link
Copy Markdown
Owner Author

CI on this branch fails at bun run setup:icc, before any check runs. That break is on main already (run for ddd2194 fails identically) and is fixed by #59.

Verified this change against a green pipeline by pushing #59 + these commits on a temporary branch: the full verify job passed in run 32187784157. This branch will go green once #59 is merged and this one is rebased.

Locally: format:check, lint, typecheck and test (214 tests) pass. Four e2e specs fail on macOS, identically on unmodified main, and all pass on Linux CI.

@patriksimms
patriksimms marked this pull request as ready for review August 18, 2026 21:31
@patriksimms

Copy link
Copy Markdown
Owner Author

Correction on the CI dependency: #59 is closed as a duplicate of #61, which fixes the same setup:icc EACCES failure and is green. This branch will go green once #61 is merged and this one is rebased. The verification run linked above is unaffected.

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.

page sidebar in book preview is not scrollable when too many responses are there

1 participant