diff --git a/src/lib/components/chat/Suggestions.svelte b/src/lib/components/chat/Suggestions.svelte index 1d58d5b337..b3afa53b37 100644 --- a/src/lib/components/chat/Suggestions.svelte +++ b/src/lib/components/chat/Suggestions.svelte @@ -90,41 +90,41 @@ class="max-h-36 overflow-auto scrollbar-none items-start {className}" > {#each filteredPrompts as prompt, idx (prompt.id || `${prompt.content}-${idx}`)} - - + style="animation-delay: {idx * 45}ms" + on:click={() => onSelect({ type: 'prompt', data: prompt.content })} + > +
+ {#if prompt.title && prompt.title[0] !== ''} +
+ {prompt.title[0]} +
+
+ {prompt.title[1]} +
+ {:else} +
+ {prompt.content} +
+
+ {$i18n.t('Prompt')} +
+ {/if} +
+ + {/each} {/if}