Spaces:
Sleeping
Sleeping
fix: nav conversation item layout
Browse files
src/lib/components/NavConversationItem.svelte
CHANGED
|
@@ -39,28 +39,30 @@
|
|
| 39 |
"
|
| 40 |
>
|
| 41 |
<div class="my-2 flex flex-1 flex-col items-start truncate">
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
{#
|
| 47 |
-
{#
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
{
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
{#if showDescription && description && searchInput}
|
| 65 |
<p class="ml-7 text-sm text-gray-500">
|
| 66 |
{#each description.split(searchInput) as segment, i}{segment}{#if i < description.split(searchInput).length - 1}<strong
|
|
|
|
| 39 |
"
|
| 40 |
>
|
| 41 |
<div class="my-2 flex flex-1 flex-col items-start truncate">
|
| 42 |
+
<span>
|
| 43 |
+
{#if confirmDelete}
|
| 44 |
+
<span class="mr-1 font-semibold"> Delete </span>
|
| 45 |
+
{/if}
|
| 46 |
+
{#if conv.avatarUrl}
|
| 47 |
+
{#await conv.avatarUrl then avatarUrl}
|
| 48 |
+
{#if avatarUrl}
|
| 49 |
+
<img
|
| 50 |
+
src="{base}{avatarUrl}"
|
| 51 |
+
alt="Assistant avatar"
|
| 52 |
+
class="mr-1.5 inline size-4 flex-none rounded-full object-cover"
|
| 53 |
+
/>
|
| 54 |
+
{/if}
|
| 55 |
+
{/await}
|
| 56 |
+
{conv.title.replace(/\p{Emoji}/gu, "")}
|
| 57 |
+
{:else if conv.assistantId}
|
| 58 |
+
<div
|
| 59 |
+
class="mr-1.5 flex size-4 flex-none items-center justify-center rounded-full bg-gray-300 text-xs font-bold uppercase text-gray-500"
|
| 60 |
+
></div>
|
| 61 |
+
{conv.title.replace(/\p{Emoji}/gu, "")}
|
| 62 |
+
{:else}
|
| 63 |
+
{conv.title}
|
| 64 |
+
{/if}
|
| 65 |
+
</span>
|
| 66 |
{#if showDescription && description && searchInput}
|
| 67 |
<p class="ml-7 text-sm text-gray-500">
|
| 68 |
{#each description.split(searchInput) as segment, i}{segment}{#if i < description.split(searchInput).length - 1}<strong
|