Skip to content

fix: keep answer row padding outside its button height - #4290

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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

Size the answer row minimum as content so the card spacing introduced by #4284 does not consume its reserved button line. Preserve the foot alignment of answered cards. Exercise the real Undo face in the existing stability test; it failed by 9px for both pointer modes before the correction.

Closes #4287
@leaf-agent
leaf-agent merged commit a0d95e7 into main Oct 26, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4287 branch October 26, 2026 20:10
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.

Answer row grows by 2px when its Undo button appears

1 participant