Skip to content

fix(transactions): tighten the details card stack and drop the header badge - #740

Merged
bmc08gt merged 2 commits into
mainfrom
fix/transaction-details-layout
Sep 8, 2026
Merged

fix(transactions): tighten the details card stack and drop the header badge#740
bmc08gt merged 2 commits into
mainfrom
fix/transaction-details-layout

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Follow-on to #739, which landed the button style before these were ready. Both measured against Figma node 9708:105260.

The cards sat too far apart

The two cards and the View in Chat button were spaced at 16pt, one value for the whole screen. Figma node 9708:118142 puts 8pt between them, with a much wider gap above separating them from the header — they read as one stacked group, not four evenly spaced items.

They now sit in their own 8pt stack, with the header left on the outer stack's 16pt.

The header avatar carried a token badge

The header reused the row's avatar wholesale, badge included, so the token appeared twice: once as a coin over the face, once by name in the line under the amount. Figma draws it plain — the 80pt frame under node 9708:118182 has no badge child.

ActivityAvatar now takes a showsTokenBadge flag rather than always deriving it from the activity; the row keeps its badge, where the avatar is the only place the token reads. Turning it off also drops the 8pt trailing overhang the badge reserved, which had been pushing the centred header avatar 4pt off centre.

Where Figma and Android disagree

Figma Android This PR
Card → card 8pt 10dp (grid.x2 at NORMAL width) 8pt
Header → first card 43pt 10dp unchanged at 16pt

The card gap follows Figma, as the button fill in #739 did. The header gap is left alone: Figma and Android are far apart there, and that is worth settling before either platform moves.

The receipt card, ID card and View in Chat button sat 16pt apart, one
spacing for the whole screen. Figma node 9708:118142 puts 8pt between
them and a much wider gap above, between the header and the block —
they read as one stacked group, not as four evenly spaced items.

Groups the three in their own 8pt stack, leaving the header on the outer
stack's 16pt. The header gap stays as it was; Figma draws 43pt there and
Android draws 10pt, so the two disagree and that one is worth settling
before changing.

Android spaces all four at `grid.x2`, which is 10dp at NORMAL width.
This follows Figma's 8, as the button fill did.
The details header reused the row's avatar wholesale, badge included, so
the token appeared twice: once as a coin over the face, and again by name
in the line under the amount. Figma draws the header avatar plain — the
80pt frame under node 9708:118182 has no badge child.

The badge stays on the row, where the avatar is the only place the token
reads. `ActivityAvatar` takes a `showsTokenBadge` flag instead of always
deriving it from the activity, and the details header passes false.
Turning it off also drops the 8pt trailing overhang the badge reserved,
which had been pushing the centred header avatar 4pt off centre.
@bmc08gt bmc08gt self-assigned this Sep 8, 2026
@bmc08gt
bmc08gt merged commit bcf84c5 into main Sep 8, 2026
1 check passed
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