links
This commit is contained in:
parent
e2cba48f0d
commit
523203b412
1 changed files with 8 additions and 6 deletions
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue