Skip to content

fix: keep Show at the foot of an answered On me card - #4284

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4279
Oct 26, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4279

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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 check pass. 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

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
@leaf-agent
leaf-agent merged commit dbdd5ea into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4279 branch October 26, 2026 18:41
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]>
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.

On me obligation test reports an uncredited 105px panel-button shift

1 participant