Skip to content

fix(chat): tighten cash bubble spacing - #1953

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/cash-bubble-spacing
Nov 3, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/cash-bubble-spacing

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Cash bubbles in chat were taller than the spec. A DM cash bubble measured 194dp on a 411dp-wide phone; it's now 154dp. A group send to three people (with the total line) goes from 206dp to 166dp.

The spacing values come from the updated cash-bubbles spec (code-payments/flipcash-client-orchestrator#112, design node 13266:348). One CashBubble draws both DM and group bubbles, so this one change covers both.

Token mapping

Each value maps to the nearest staticGrid step (5dp) at or below the spec value. The gaps used to come from grid, which scales with screen width (7.5dp steps on tablets), so they now use staticGrid, the same grid as the bubble's own padding.

Gap Spec Before After Token
Padding above the first line and below the last 16 20 15 bubble staticGrid.x2 + staticGrid.x1
Caption → money, money → "to A" / "from A" 12 20 10 staticGrid.x2
Amount (or total) → currency 6 15 5 staticGrid.x1
Amount → total unchanged 0 0 none

None of the three changed values lands on a token: 16 → 15, 12 → 10, 6 → 5. Together they leave the Android bubble 7dp shorter than a bubble built to the exact spec values. If iOS uses the exact values, the two apps won't reach the same height until one side changes.

Screenshots

DM bubble ("You sent $1.00 / Jeffy / to Ada Lee") on a 1080×2400, 420dpi emulator, before and after:

Group bubble (the Preview_CashBubble_GroupSender preview rendered in Robolectric at 411dp wide), before and after. The test account has no group send to two or more people, so there is no device screenshot of one:

The cash bubble was taller than the spec (docs/specs/cash-bubbles.md,
node 13266:348). Outer padding goes from 20 to 15, the caption, money
and counterpart gaps from 20 to 10, and the currency gap from 15 to 5.
The gaps move to the static 5dp grid so each value maps down to the
same step at every screen width.
@bmc08gt bmc08gt self-assigned this Nov 3, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Nov 3, 2026
@bmc08gt
bmc08gt merged commit 9176f6e into code/cash Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant