Fix chat layout

This commit is contained in:
Jonathan Staab 2023-02-04 13:01:47 -06:00
parent 4d4aa69681
commit dcd8de7912
2 changed files with 4 additions and 3 deletions

View File

@ -48,6 +48,7 @@ If you like Coracle and want to support its development, you can donate sats via
# Bugs
- [ ] Everything waits for even the slowest relay to connect before returning events
- [ ] Mentions are sorta weird, usually mention self
- [ ] Alerts are not showing likes, just generally screwy. Maybe because I threadify before adding to the db?
- [ ] Change network tab to list relays the user is connected to
- [ ] Sync mentions box and in-reply mentions

View File

@ -40,9 +40,9 @@
<div
class="overflow-hidden w-14 h-14 rounded-full bg-cover bg-center shrink-0 border border-solid border-white"
style="background-image: url({room.picture})" />
<div class="flex flex-grow flex-col justify-start gap-2">
<div class="flex flex-grow flex-col justify-start gap-2 min-w-0">
<div class="flex flex-grow items-start justify-between gap-2">
<div class="flex gap-2 items-center">
<div class="flex gap-2 items-center overflow-hidden">
{#if room.type === 'npub'}
<i class="fa fa-lock text-light" />
<h2 class="text-lg">{displayPerson(room)}</h2>
@ -76,7 +76,7 @@
{/if}
</div>
{#if room.about}
<p class="text-light">
<p class="text-light text-start">
{ellipsize(room.about, 300)}
</p>
{/if}