Skip to content

fix(wallet): bottom-align labels on Spread TileButtons - #1245

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/wallet-tile-alignment
Aug 15, 2026
Merged

fix(wallet): bottom-align labels on Spread TileButtons#1245
bmc08gt merged 1 commit into
code/cashfrom
fix/wallet-tile-alignment

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Make the wallet's Spread action tiles match iOS: icon top-left, label bottom-left, labels bottom-aligned across tiles even when one wraps to two lines.

  • TileButton Spread uses Arrangement.SpaceBetween — icon pins top, label pins bottom; the tile height is the gap.
  • Wallet Add Money / Discover Currencies switch from an IntrinsicSize.Min row (tiles were only as tall as content → no gap on the 2-line card, and the 1-line label sat top-aligned) to Modifier.weight(1f).aspectRatio(1.45f). Equal height, width-proportional like iOS, tall enough for the labels to bottom-align.

Test plan

  • ./gradlew :apps:flipcash:app:compileDebugKotlin passes.
  • On device: "Add Money" and "Discover Currencies" tiles are equal height; the plus/globe icons sit top-left and both labels bottom-align.

The Spread TileButton now uses Arrangement.SpaceBetween so the icon pins to the
top and the label to the bottom; the tile's height becomes the gap, matching iOS.

The wallet Add Money / Discover Currencies tiles switch from an IntrinsicSize.Min
row (which sized the tiles to content, leaving no gap on the two-line card and
top-aligning the one-line label) to a width-proportional aspectRatio(1.45f). Both
tiles are then equal height and tall enough for the labels to bottom-align whether
they wrap to one or two lines.
@github-actions github-actions Bot added the type: fix Bug fix label Aug 15, 2026
@bmc08gt
bmc08gt merged commit 54c9afe into code/cash Aug 15, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/wallet-tile-alignment branch August 15, 2026 01:46
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