misc: don't let community avatars on sidebar shrink (#70)

If a community name is long and uses multiple lines, the avatar will
shrink, leading to awkward alignment.

This adds a non-flexible container around the avatar to prevent this.
This commit is contained in:
Peter Bui authored and GitHub committed 2023-08-05 08:37:16 -07:00
1 parent 644003bfef
commit 6ea697e3bc
1 file changed
+9 -7
@@ -14,13 +14,15 @@
alignment="left"
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
>
<Avatar
url={follow.icon}
alt={follow.name}
title={follow.title}
width={20}
slot="icon"
/>
<div class="flex-none">
<Avatar
url={follow.icon}
alt={follow.name}
title={follow.title}
width={20}
slot="icon"
/>
</div>
<span class:hidden={!expanded}>
{follow.title}
</span>