Commit 5a24a23
authored
[2.x] fix(admin): keep extension danger badge visible on long names (#4660)
The abandoned-extension danger/warning badge was rendered inside the
button's truncated label, so when the extension name was long enough
to trigger the ellipsis overflow on `.Button-labelText`, the badge
itself got clipped and was no longer visible in the admin sidebar.
Move the badge into `ExtensionLinkButton::statusItems()` (alongside
the enabled/disabled status dot) so it sits as a sibling of the
button label rather than inside it. Position it absolutely to the
left of the dot, vertically aligned by matching the dot's
`margin`-based centering offset for the larger badge size.
Closes #45921 parent 5f3fb89 commit 5a24a23
3 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| |||
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
0 commit comments