Skip to content

fix(group-requests): keep the strip's text and Pay button whole as the deck collapses - #1137

Merged
bmc08gt merged 1 commit into
mainfrom
fix/group-request-strip-collapse
Oct 26, 2026
Merged

bmc08gt merged 1 commit into
mainfrom
fix/group-request-strip-collapse

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

When the expanded deck collapses back into the owed strip, one frame shows the strip at full width with no Pay button and both lines cut off: "Monday Requ…" and "You owe $2 · 7 days…". The next frame is the real strip, with the full text and the green Pay button.

That frame is the moving card in PaymentRequestDeckMorph, resting at the strip just before the strip itself takes over. It had two gaps:

  • It never drew the Pay button. It now draws it at the frame the strip measured (new DeckPart.pay), held the same distance from the moving card's trailing edge, and fades it in over the last 35% of the collapse, the same curve the amounts line uses. Expanding fades it out the same way. The capsule moved into PaymentRequestStripPayLabel so both draw the same thing.
  • It laid the strip's text out at exactly the width the strip measured. Proposing a text its own fractional width can round down and truncate, so the outgoing text now gets one point of slack. This is the likely cause rather than a confirmed one; the pill's title, which truncates on purpose at 90 pt, still truncates at 91.

…e deck collapses

The moving card that carries the front request back into the owed strip
drew no Pay button and laid the strip's title and owed line out at
exactly their measured widths. On the frame before the real strip took
over, the strip showed at full width with no Pay button and both lines
truncated ("Monday Requ…", "You owe $2 · 7 days…").

The moving card now draws the Pay button at its measured spot, held
against its trailing edge and fading in over the last 35% of the
collapse, and gives the strip's text a point of slack over its measured
width so it doesn't round down into truncation.
@bmc08gt bmc08gt self-assigned this Oct 26, 2026
@bmc08gt
bmc08gt marked this pull request as ready for review October 26, 2026 22:30
@bmc08gt
bmc08gt merged commit 27d7ab3 into main Oct 26, 2026
4 checks passed
@bmc08gt
bmc08gt deleted the fix/group-request-strip-collapse branch October 26, 2026 22:31
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.

1 participant