fix #53
This commit is contained in:
1 parent
3ac78a6202
commit
954d8986dc
2 files changed
+6
-2
No files matched your search
@@ -8,6 +8,7 @@
|
||||
export let url: string | undefined
|
||||
export let alt: string = ''
|
||||
export let title: string = ''
|
||||
export let circle: boolean = true
|
||||
|
||||
export let width: number
|
||||
</script>
|
||||
@@ -19,12 +20,14 @@
|
||||
{width}
|
||||
{title}
|
||||
loading="lazy"
|
||||
class="rounded-full aspect-square object-cover overflow-hidden"
|
||||
class="aspect-square object-cover overflow-hidden"
|
||||
class:rounded-full={circle}
|
||||
/>
|
||||
{:else}
|
||||
<div
|
||||
style="width: {width}px; height: {width}px;"
|
||||
class="rounded-full aspect-square object-cover overflow-hidden"
|
||||
class="aspect-square object-cover overflow-hidden"
|
||||
class:rounded-full={circle}
|
||||
>
|
||||
{@html createAvatar(initials, {
|
||||
seed: alt,
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
url={$site.site_view.site.icon}
|
||||
alt={$site.site_view.site.name}
|
||||
width={32}
|
||||
circle={false}
|
||||
/>
|
||||
<div class="flex flex-row items-center gap-2 max-[500px]:hidden">
|
||||
<span class="opacity-30 text-xl">/</span>
|
||||
|
||||
Reference in new issue
Block a user