Repository navigation
Commit 216e06e
Keep a broken avatar inside its own ring
Staging surfaced this: two test agents reference avatar files that do not
exist, and the browser drew their alt text instead. A 46px badge became a
69px box that spilled 25px over the agent rail beside it.
The monogram fallback only covers an empty avatarAsset. When a filename
is present but the file is missing there is no way to know at render
time, so the badge clips instead.
Hit-tested rather than measured, because getBoundingClientRect reports
the layout box and overflow clipping is visual: a point 8px outside the
badge used to land on the broken image itself, and now lands on the link
underneath it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 242f0c5 commit 216e06e
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
| |||
0 commit comments