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
+2
@@ -14,6 +14,7 @@
alignment="left"
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
>
<div class="flex-none">
<Avatar
url={follow.icon}
alt={follow.name}
@@ -21,6 +22,7 @@
width={20}
slot="icon"
/>
</div>
<span class:hidden={!expanded}>
{follow.title}
</span>