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:
Peter Bui authored and GitHub committed 2023-07-31 17:03:08 -07:00
1 parent d70548f6c7
commit 9e4fcae599
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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"
/>