Repository navigation
Hold a deck at its tallest card's height, so Back stays under the pointer - #7462
Merged
Merged
Conversation
…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_
leaf-agent
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.