Redrawing the Avatar when changing the persona in UserInfo

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
Alexander Platov 2025-05-29 04:25:42 +07:00
parent 70c704d468
commit d562db268a
No known key found for this signature in database
GPG Key ID: 67AE092F5EB4180C

View File

@ -33,7 +33,9 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="flex-row-center" on:click>
<Avatar person={value} {size} {icon} name={value.name} on:accent-color {showStatus} />
{#key value._id}
<Avatar person={value} {size} {icon} name={value.name} on:accent-color {showStatus} />
{/key}
<div class="flex-col min-w-0 {size === 'tiny' || size === 'inline' ? 'ml-1' : 'ml-2'}" class:max-w-20={short}>
{#if subtitle}<div class="content-dark-color text-sm">{subtitle}</div>{/if}
<div class="label text-left overflow-label">{getName(client.getHierarchy(), value)}</div>