This commit is contained in:
Thomas G. Lopes 2025-06-17 00:19:18 +01:00
parent e2cba48f0d
commit 523203b412

View file

@ -59,8 +59,10 @@
<Button href="/chat" class="w-full">New Chat</Button> <Button href="/chat" class="w-full">New Chat</Button>
<div class="flex flex-1 flex-col overflow-y-auto py-2"> <div class="flex flex-1 flex-col overflow-y-auto py-2">
{#each conversationsQuery.data ?? [] as conversation (conversation._id)} {#each conversationsQuery.data ?? [] as conversation (conversation._id)}
<a href={`/chat/${conversation._id}`} class="text-left hover:underline"> <a href={`/chat/${conversation._id}`} class="group py-0.5 pr-2.5 text-left text-sm">
<p class="group-hover:bg-muted rounded-md py-1.5 pl-3">
{conversation.title} {conversation.title}
</p>
</a> </a>
{/each} {/each}
</div> </div>
@ -70,12 +72,12 @@
<Avatar src={data.session?.user.image ?? undefined}> <Avatar src={data.session?.user.image ?? undefined}>
{#snippet children(avatar)} {#snippet children(avatar)}
<img {...avatar.image} alt="Your avatar" class="size-10 rounded-full" /> <img {...avatar.image} alt="Your avatar" class="size-10 rounded-full" />
<span {...avatar.fallback} <span {...avatar.fallback} class="size-10 rounded-full">
>{data.session?.user.name {data.session?.user.name
.split(' ') .split(' ')
.map((name) => name[0]?.toUpperCase()) .map((name) => name[0]?.toUpperCase())
.join('')}</span .join('')}
> </span>
{/snippet} {/snippet}
</Avatar> </Avatar>
<div class="flex flex-col"> <div class="flex flex-col">