Commit ee3c889
authored
Fix mobile artist badge centering (#14495)
## Summary
- Center the actual rendered mobile artist row, including badges, by
removing the hidden badge spacer row
- Keep badges next to each artist name in multi-artist rows
- Add a test guard so each artist badge set only renders once
## Verification
- npm run typecheck -w @audius/mobile -- --noEmit
- npm run lint -w @audius/mobile --
src/components/user-link/TrackArtists.tsx
src/components/user-link/TrackArtists.test.tsx
src/screens/track-screen/TrackScreenDetailsTile.tsx
- cd packages/mobile && ../../node_modules/.bin/jest
src/components/user-link/TrackArtists.test.tsx --runInBand1 parent a1e8079 commit ee3c889
2 files changed
Lines changed: 4 additions & 41 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
Lines changed: 2 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 17 | | |
37 | 18 | | |
38 | 19 | | |
| |||
117 | 98 | | |
118 | 99 | | |
119 | 100 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 101 | | |
133 | 102 | | |
134 | 103 | | |
135 | 104 | | |
136 | 105 | | |
137 | 106 | | |
| 107 | + | |
138 | 108 | | |
139 | 109 | | |
140 | 110 | | |
| |||
146 | 116 | | |
147 | 117 | | |
148 | 118 | | |
149 | | - | |
| 119 | + | |
150 | 120 | | |
151 | 121 | | |
152 | 122 | | |
| |||
169 | 139 | | |
170 | 140 | | |
171 | 141 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | 142 | | |
182 | 143 | | |
183 | 144 | | |
| |||
0 commit comments