This commit is contained in:
Timothy Jaeryang Baek
2024-11-14 03:16:26 -08:00
parent 0e8c0b452e
commit 85d7f1c6ed
5 changed files with 189 additions and 60 deletions

View File

@@ -97,19 +97,21 @@
</div>
<div class="flex w-full items-center justify-between">
<div class="flex">
<img
class=" rounded-full w-6 h-6 object-cover mr-2.5"
src={user.profile_image_url.startsWith(WEBUI_BASE_URL) ||
user.profile_image_url.startsWith('https://www.gravatar.com/avatar/') ||
user.profile_image_url.startsWith('data:')
? user.profile_image_url
: `/user.png`}
alt="user"
/>
<Tooltip content={user.email} placement="top-start">
<div class="flex">
<img
class=" rounded-full w-6 h-6 object-cover mr-2.5"
src={user.profile_image_url.startsWith(WEBUI_BASE_URL) ||
user.profile_image_url.startsWith('https://www.gravatar.com/avatar/') ||
user.profile_image_url.startsWith('data:')
? user.profile_image_url
: `/user.png`}
alt="user"
/>
<div class=" font-medium self-center">{user.name}</div>
</div>
<div class=" font-medium self-center">{user.name}</div>
</div>
</Tooltip>
{#if userIds.includes(user.id)}
<button