nsarrazin commited on
Commit
02b74dc
·
1 Parent(s): fcee25d

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
- {#if confirmDelete}
43
- <span class="mr-1 font-semibold"> Delete </span>
44
- {/if}
45
- {#if conv.avatarUrl}
46
- {#await conv.avatarUrl then avatarUrl}
47
- {#if avatarUrl}
48
- <img
49
- src="{base}{avatarUrl}"
50
- alt="Assistant avatar"
51
- class="mr-1.5 inline size-4 flex-none rounded-full object-cover"
52
- />
53
- {/if}
54
- {/await}
55
- {conv.title.replace(/\p{Emoji}/gu, "")}
56
- {:else if conv.assistantId}
57
- <div
58
- 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"
59
- ></div>
60
- {conv.title.replace(/\p{Emoji}/gu, "")}
61
- {:else}
62
- {conv.title}
63
- {/if}
 
 
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