Repository navigation
fix: keep Show at the foot of an answered On me card - #4284
Merged
Merged
Conversation
PR #4270 gives described choices full rows. Keeping only the card height let Show jump upward on answer and down 105px when Undo restored the choices. Use the retained card height to keep the answer controls at its foot, preserving the descriptions and the adjacent cards. Assert Show stays in place through answer and Undo; add catalogue states for the answered choice. Closes #4279
This was referenced Oct 26, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 26, 2026
The answer-row padding added by #4284 counted toward its minimum button height. A words-only row could therefore grow when Undo arrived. Make the minimum size the content box, keeping the card spacing outside the reserved button line and preserving Show's foot alignment. The existing regression now uses Undo's production classes. It fails before this correction by 9px on both mouse and touch, and passes afterward. The original fixture also reproduced the reported 28px → 30px failure. The neighboring answer/Undo and On me grouping tests pass. `pnpm run check` passes. Base/head stills cover described choices and answered cards on desktop light/dark and touch; their controls and retained card geometry are unchanged. Closes #4287 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
PR #4270 made described On me choices take full rows. The card retained its height after answering, but its shorter result pulled Show upward; Undo restored the choices and moved Show down 105 px. Keep the answers at the foot of the retained card using flex layout, so Show stays in place through both transitions. Choice descriptions, recommendations and neighboring card positions are preserved.
The changed screen state is an answered On me choice card: the result and Undo now sit at its foot beside Show, with the retained space above them. Unanswered cards keep their existing layout. Added catalogue states cover the unanswered card and the result on desktop light/dark and phone.
Validation: the reported test fails on current main with the exact 104.96875 px shift, and passes on the parent of #4270. A new explicit Show-position assertion fails before this fix and passes afterward. The repaired journey passes normally and at 6×/20× CPU slowdown; three neighboring On me tests, all 668 runtime tests, and
pnpm run checkpass. Four base/head still pairs were captured and inspected: the unanswered state is unchanged, and answered light/dark/phone states retain Show at the card's foot. An independent code and visual review found no findings.Closes #4279 — automated triage