fix(ui): prevent avatar alt-text overlap on failed image loads (#21730)

This commit is contained in:
G30
2026-02-22 14:24:16 -06:00
committed by GitHub
parent f95cff0895
commit 713fe1afa7
3 changed files with 14 additions and 2 deletions
@@ -130,7 +130,10 @@
<img
src="{WEBUI_API_BASE_URL}/models/model/profile/image?id={model.model_id}"
alt={model.name}
class="size-5 rounded-full object-cover"
class="size-5 rounded-full object-cover shrink-0"
on:error={(e) => {
e.target.src = '/favicon.png';
}}
/>
<span class="font-medium text-gray-800 dark:text-gray-200">{model.name}</span>
</div>