diff --git a/src/app.html b/src/app.html index aa982970..1d2b94d9 100644 --- a/src/app.html +++ b/src/app.html @@ -27,7 +27,21 @@ %sveltekit.head% -
+
diff --git a/src/lib/components/ui/Avatar.svelte b/src/lib/components/ui/Avatar.svelte index ad741fb2..141160e4 100644 --- a/src/lib/components/ui/Avatar.svelte +++ b/src/lib/components/ui/Avatar.svelte @@ -2,6 +2,7 @@ import { findClosestNumber } from '$lib/util.svelte.js' import { createAvatar } from '@dicebear/core' import * as initials from '@dicebear/initials' + import type { ClassValue } from 'svelte/elements' const sizes = [16, 24, 32, 48, 64, 96, 128, 256, 512] @@ -35,7 +36,7 @@ width: number res?: number | undefined style?: string - class?: string + class?: ClassValue [key: string]: any } @@ -65,7 +66,7 @@ {alt} {width} {title} - class="aspect-square object-cover overflow-hidden {clazz} flex-shrink-0" + class={['aspect-square object-cover overflow-hidden flex-shrink-0', clazz]} style="width: {width}px; height: {width}px; {style}" class:rounded-full={circle} class:rounded-md={!circle} @@ -73,7 +74,7 @@ {:else}
diff --git a/src/lib/lemmy/ProfileAvatar.svelte b/src/lib/lemmy/ProfileAvatar.svelte index 52172c96..70517468 100644 --- a/src/lib/lemmy/ProfileAvatar.svelte +++ b/src/lib/lemmy/ProfileAvatar.svelte @@ -1,5 +1,6 @@