Skip to content

Hold a deck at its tallest card's height, so Back stays under the pointer - #7462

Merged
max-sixty merged 1 commit into
mainfrom
toc-scroll-gap
Nov 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
toc-scroll-gap

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A deck now stands as tall as the tallest card it has shown, and the open card's frame fills that height, as a slider does with its tallest slide. Since #7438 a page ends at its last line, so at a page's end Back from a tall card to a short one shrank the deck and the browser pulled the page down, carrying Back 404px from under the pointer. Now Back stays put, mid-page and at the end.

This brings back #7150's hold (#hold, the width observer, the flex fill), which #7188 dropped in favour of the end room. Max picked "Size every card to the tallest" on his review page from five options, after trying each in a preview.

To weigh: a short card's frame stands tall round its content (in the journey's page, 660px round about 256px of content). The height held is the tallest card shown so far, not the tallest in the deck, so the first visit to a taller card still grows the deck; growth moves nothing above it.

Tests: the hold-still journey's deck-back rows pass in Chromium and Firefox and leave the expected-failure list; the deck tests on height, scrolling and Undo pass.

This was written by Claude Code on behalf of max-sixty

…nter

A deck now stands as tall as the tallest card it has shown, and the open
card's frame fills that height, as a slider stands as tall as its tallest
slide. Since #7438 a page ends at its last line, so at a page's end Back
from a tall card to a short one shrank the deck and the browser pulled
the page down: Back moved 404px from under the pointer (Firefox, the
hold-still journey's page), and `m` landed each card at its own height.
Now Back stays where it stood, mid-page and at the end. A short card's
frame stands tall round its content; the end of the pass keeps its own
height inside the deck; a change of the deck's width lets the height go
until the next card.

This brings back #7150's hold, which #7188 dropped for the end room.
Max picked it on his review page from five options, after trying each in
a preview: the frame filling the height, an empty band below the card,
holding only while the pointer or focus is in the deck, moving the bar
under the card, and following each card as before. The deck's header
now records his choice and two of the options he passed over.

Tests: the hold-still journey's deck-back rows pass in Chromium and
Firefox and leave the expected-failure list; the deck tests on its
height, scrolling and Undo pass.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 74b5ac7 into main Nov 27, 2026
6 checks passed
@max-sixty
max-sixty deleted the toc-scroll-gap branch November 27, 2026 23:34
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