Commit d7a3d11
committed
fix(v3-uplift): align the delegation rows to the label's first line
The radio and the amount both centred against the whole label, so on the
combined AAVE + stkAAVE + aAAVE row — the only one that wraps — they sat
between its two lines.
The amount takes align="flex-start". The radio needs more than that:
switching FormControlLabel to flex-start puts the radio's box top at the
label's top, but the control is 36px (an 18px icon inside SwitchBase's
unconditional 9px padding, which size="small" does not shrink once the
theme substitutes a fixed icon) against a 20px text line, so the glyph
would sit 8px low. The label carries that 8px as a top margin instead,
which centres the first line on the glyph. The single-token rows render
identically — centring a 20px label in a 36px box already put its top at
8px.
Also stops the wrap splitting a token from its icon. The icon, the label
and the "+" were three sibling flex items, so each was its own break
opportunity and aAAVE's icon stayed behind on the first line. Each
icon+label pair is now one item; the "+" still breaks freely.1 parent f3c10a1 commit d7a3d11
1 file changed
Lines changed: 12 additions & 9 deletions
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
110 | | - | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
0 commit comments