fix presence sidebar alignment

This commit is contained in:
hippoz 2022-09-20 23:49:34 +03:00
parent 73fd353965
commit b1c64d3f58
No known key found for this signature in database
GPG key ID: 7C52899193467641
2 changed files with 4 additions and 13 deletions

View file

@ -360,15 +360,6 @@ body {
text-overflow: ellipsis;
}
.sidebar-button .sidebar-button-icon {
display: inline;
flex-shrink: 0;
/* TODO: HACK! */
width: 24px;
height: 24px;
}
.sidebar-button .icon-button {
display: none;
}

View file

@ -15,14 +15,14 @@
<div class="sidebar">
{#each $presenceStore as entry (entry.user.id)}
<button class="sidebar-button">
<div class="sidebar-button-icon material-icons-outlined">alternate_email</div>
<span>{ entry.user.username }</span>
<div class="material-icons-outlined">alternate_email</div>
<span class="sidebar-button-text">{ entry.user.username }</span>
</button>
{/each}
{#if $smallViewport}
<button on:click={ close } class="sidebar-button">
<div class="sidebar-button-icon material-icons-outlined">arrow_back</div>
<span>Back</span>
<div class="material-icons-outlined">arrow_back</div>
<span class="sidebar-button-text">Back</span>
</button>
{/if}
</div>