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

+1 -1
View File
@@ -60,7 +60,7 @@
alignment="left"
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
>
<Avatar url={follow.icon} alt={follow.name} width={20} slot="icon" />
<Avatar url={follow.icon} alt={follow.name} title={follow.title} width={20} slot="icon" />
<span class:hidden={!expanded}>{follow.title}</span>
</Button>
{/each}