fix: add profile image fallback handlers for model and user avatars in remaining areas (#22486)

* fix(ui): add profile image fallback handlers for models and users

* Update UserList.svelte

* fix(ui): add profile image fallback handlers for models on New Chat page
This commit is contained in:
G30
2026-03-15 20:04:56 -05:00
committed by GitHub
parent 9465e2918b
commit bef5ec2cea
8 changed files with 30 additions and 0 deletions
@@ -86,6 +86,9 @@
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${model.id}&lang=${$i18n.language}`}
alt={model?.name ?? model.id}
class="rounded-full size-5 items-center mr-2"
on:error={(e) => {
e.currentTarget.src = '/favicon.png';
}}
/>
<div class="truncate">
{model.name}