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 url: string | undefined
|
||||||
export let alt: string = ''
|
export let alt: string = ''
|
||||||
export let title: string = ''
|
export let title: string = ''
|
||||||
|
export let circle: boolean = true
|
||||||
|
|
||||||
export let width: number
|
export let width: number
|
||||||
</script>
|
</script>
|
||||||
@@ -19,12 +20,14 @@
|
|||||||
{width}
|
{width}
|
||||||
{title}
|
{title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="rounded-full aspect-square object-cover overflow-hidden"
|
class="aspect-square object-cover overflow-hidden"
|
||||||
|
class:rounded-full={circle}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div
|
<div
|
||||||
style="width: {width}px; height: {width}px;"
|
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, {
|
{@html createAvatar(initials, {
|
||||||
seed: alt,
|
seed: alt,
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
url={$site.site_view.site.icon}
|
url={$site.site_view.site.icon}
|
||||||
alt={$site.site_view.site.name}
|
alt={$site.site_view.site.name}
|
||||||
width={32}
|
width={32}
|
||||||
|
circle={false}
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-row items-center gap-2 max-[500px]:hidden">
|
<div class="flex flex-row items-center gap-2 max-[500px]:hidden">
|
||||||
<span class="opacity-30 text-xl">/</span>
|
<span class="opacity-30 text-xl">/</span>
|
||||||
|
|||||||
Reference in new issue
Block a user