diff --git a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte
index c886ff1cc4..f1140eaab0 100644
--- a/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte
+++ b/web/src/lib/components/shared-components/navigation-bar/navigation-bar.svelte
@@ -155,7 +155,7 @@
title={`${$user.name} (${$user.email})`}
>
{#key $user}
-
+
{/key}
diff --git a/web/src/lib/components/shared-components/user-avatar.svelte b/web/src/lib/components/shared-components/user-avatar.svelte
index 938f569508..4306c3cf38 100644
--- a/web/src/lib/components/shared-components/user-avatar.svelte
+++ b/web/src/lib/components/shared-components/user-avatar.svelte
@@ -18,25 +18,13 @@
interface Props {
user: User;
- color?: UserAvatarColor | undefined;
size?: Size;
- rounded?: boolean;
interactive?: boolean;
- showTitle?: boolean;
- showProfileImage?: boolean;
+ noTitle?: boolean;
label?: string | undefined;
}
- let {
- user,
- color = undefined,
- size = 'full',
- rounded = true,
- interactive = false,
- showTitle = true,
- showProfileImage = true,
- label = undefined,
- }: Props = $props();
+ let { user, size = 'full', interactive = false, noTitle = false, label = undefined }: Props = $props();
let img: HTMLImageElement | undefined = $state();
let showFallback = $state(true);
@@ -79,7 +67,7 @@
}
});
- let colorClass = $derived(colorClasses[color || user.avatarColor]);
+ let colorClass = $derived(colorClasses[user.avatarColor]);
let sizeClass = $derived(sizeClasses[size]);
let title = $derived(label ?? `${user.name} (${user.email})`);
let interactiveClass = $derived(
@@ -90,11 +78,10 @@
- {#if showProfileImage && user.profileImagePath}
+ {#if user.profileImagePath}
-
+
-
+
{#each colors as color (color)}
{/each}