Skip to content

refactor(activity): size the avatar badge slot off the static grid - #1387

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/activity-token-badge
Aug 31, 2026
Merged

refactor(activity): size the avatar badge slot off the static grid#1387
bmc08gt merged 1 commit into
code/cashfrom
fix/activity-token-badge

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #1386, which landed the token badge with three raw dp constants.

Two were already grid values in disguise, so they now come from the theme: the avatar is staticGrid.x8 (40dp), the badge staticGrid.x4 (20dp).

The 48dp slot has no token on either grid — the 5pt static grid goes 45, 50, and the dynamic grid is screen-size dependent. It takes staticGrid.x10 (50dp), which reads as the avatar plus one grid step of overhang on each side. That is 2dp wider than Figma draws. The trade is a uniform 2dp shift of every row's title rather than an off-grid constant, which seemed the better of the two; happy to go back to a literal 48dp if you'd rather match the design exactly.

Also drops an unused size import the badge work left behind.

The badge landed with three raw dp constants. Two of them were already grid
values in disguise, so read them from the theme instead: the avatar is
`staticGrid.x8` (40dp) and the badge `staticGrid.x4` (20dp).

The 48dp slot has no token on either grid. It takes `staticGrid.x10` (50dp),
which reads as the avatar plus one grid step of overhang on each side. That is
2dp wider than Figma draws, and it shifts the title by the same 2dp on every
row rather than unevenly.

Also drops an unused `size` import the badge work left behind.
@bmc08gt bmc08gt self-assigned this Aug 31, 2026
@github-actions github-actions Bot added the type: refactor Code restructuring, no behavior change label Aug 31, 2026
@bmc08gt
bmc08gt merged commit 069a146 into code/cash Aug 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant