refac: profile_image_url optimization

This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-20 20:43:59 -05:00
1 parent cd30152c83
commit 6442871947
28 files changed
+56 -97

No files matched your search

+2 -1
View File
@@ -38,6 +38,7 @@
import ChatPlus from '../icons/ChatPlus.svelte';
import ChatCheck from '../icons/ChatCheck.svelte';
import Knobs from '../icons/Knobs.svelte';
import { WEBUI_API_BASE_URL } from '$lib/constants';
const i18n = getContext('i18n');
@@ -242,7 +243,7 @@
<div class=" self-center">
<span class="sr-only">{$i18n.t('User menu')}</span>
<img
src={$user?.profile_image_url}
src={`${WEBUI_API_BASE_URL}/users/${$user?.id}/profile/image`}
class="size-6 object-cover rounded-full"
alt=""
draggable="false"