fix: group user load
This commit is contained in:
parent
a01e5126a3
commit
95b11207a1
|
@ -57,7 +57,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-3 max-h-[22rem] overflow-y-auto scrollbar-hidden">
|
<div class="mt-3 scrollbar-hidden">
|
||||||
<div class="flex flex-col gap-2.5">
|
<div class="flex flex-col gap-2.5">
|
||||||
{#if filteredUsers.length > 0}
|
{#if filteredUsers.length > 0}
|
||||||
{#each filteredUsers as user, userIdx (user.id)}
|
{#each filteredUsers as user, userIdx (user.id)}
|
||||||
|
@ -78,16 +78,6 @@
|
||||||
<div class="flex w-full items-center justify-between">
|
<div class="flex w-full items-center justify-between">
|
||||||
<Tooltip content={user.email} placement="top-start">
|
<Tooltip content={user.email} placement="top-start">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<img
|
|
||||||
class=" rounded-full size-5 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
|
|
||||||
: `${WEBUI_BASE_URL}/user.png`}
|
|
||||||
alt="user"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class=" font-medium self-center">{user.name}</div>
|
<div class=" font-medium self-center">{user.name}</div>
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
@ -392,7 +392,7 @@
|
||||||
<div class="flex flex-row w-max">
|
<div class="flex flex-row w-max">
|
||||||
<img
|
<img
|
||||||
class=" rounded-full w-6 h-6 object-cover mr-2.5"
|
class=" rounded-full w-6 h-6 object-cover mr-2.5"
|
||||||
src={user.profile_image_url.startsWith(WEBUI_BASE_URL) ||
|
src={user?.profile_image_url?.startsWith(WEBUI_BASE_URL) ||
|
||||||
user.profile_image_url.startsWith('https://www.gravatar.com/avatar/') ||
|
user.profile_image_url.startsWith('https://www.gravatar.com/avatar/') ||
|
||||||
user.profile_image_url.startsWith('data:')
|
user.profile_image_url.startsWith('data:')
|
||||||
? user.profile_image_url
|
? user.profile_image_url
|
||||||
|
|
Loading…
Reference in New Issue