fix user channels button

This commit is contained in:
hippoz 2023-06-26 13:44:17 +03:00
parent 9d1a885d87
commit fd449c8269
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -67,8 +67,10 @@
<div class="sidebar-container" in:maybeFly="{{ duration: 175, easing: quadInOut, x: -10 }}" out:maybeFlyIf="{{ _condition: !smallViewport.value, duration: 175, easing: quadInOut, x: -10 }}"> <div class="sidebar-container" in:maybeFly="{{ duration: 175, easing: quadInOut, x: -10 }}" out:maybeFlyIf="{{ _condition: !smallViewport.value, duration: 175, easing: quadInOut, x: -10 }}">
<div class="communities"> <div class="communities">
<button class="button" on:click={() => selectedCommunity.clear()} class:selected={ $selectedCommunity.id === -1 }> <button class="button" on:click={() => selectedCommunity.clear()} class:selected={ $selectedCommunity.id === -1 }>
{#if $userInfoStore} {#if $userInfoStore && $userInfoStore.avatar}
<img src={avatarUrl($userInfoStore.avatar, 64)} alt=" "> <img src={avatarUrl($userInfoStore.avatar, 64)} alt=" ">
{:else}
<span>{ $userInfoStore ? $userInfoStore.username[0] || "" : "" }</span>
{/if} {/if}
</button> </button>
{#each $communities as community (community.id)} {#each $communities as community (community.id)}