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