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:
1 parent
644003bfef
commit
6ea697e3bc
1 file changed
+2
@@ -14,6 +14,7 @@
|
|||||||
alignment="left"
|
alignment="left"
|
||||||
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
|
href="/c/{follow.name}@{new URL(follow.actor_id).hostname}"
|
||||||
>
|
>
|
||||||
|
<div class="flex-none">
|
||||||
<Avatar
|
<Avatar
|
||||||
url={follow.icon}
|
url={follow.icon}
|
||||||
alt={follow.name}
|
alt={follow.name}
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
width={20}
|
width={20}
|
||||||
slot="icon"
|
slot="icon"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<span class:hidden={!expanded}>
|
<span class:hidden={!expanded}>
|
||||||
{follow.title}
|
{follow.title}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in new issue
Block a user