misc: add title attribute to Avatar (#50)
This will allow users to hover over the avatars in a collapsed sidebar and see the name of the community.
This commit is contained in:
1 parent
d70548f6c7
commit
9e4fcae599
2 files changed
+3
-1
No files matched your search
@@ -7,6 +7,7 @@
|
||||
|
||||
export let url: string | undefined
|
||||
export let alt: string = ''
|
||||
export let title: string = ''
|
||||
|
||||
export let width: number
|
||||
</script>
|
||||
@@ -16,6 +17,7 @@
|
||||
src="{url}?format=webp&thumbnail={findClosestNumber(sizes, width)}"
|
||||
{alt}
|
||||
{width}
|
||||
{title}
|
||||
loading="lazy"
|
||||
class="rounded-full aspect-square object-cover overflow-hidden"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user