From 0138251a9c39511e7556c8c45134e5c6456388b6 Mon Sep 17 00:00:00 2001 From: Andrew Risse Date: Fri, 2 Aug 2024 11:12:15 -0600 Subject: [PATCH] Fix assistant name length --- .../src/lib/components/SelectAssistantDropdown.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leapfrogai_ui/src/lib/components/SelectAssistantDropdown.svelte b/src/leapfrogai_ui/src/lib/components/SelectAssistantDropdown.svelte index 22100eb5b..8dc639e3b 100644 --- a/src/leapfrogai_ui/src/lib/components/SelectAssistantDropdown.svelte +++ b/src/leapfrogai_ui/src/lib/components/SelectAssistantDropdown.svelte @@ -56,7 +56,7 @@ data-value={assistant.id} class="flex justify-between " > - {`${assistant.name.slice(0, 20)}...`} + {assistant.name.length > 20 ? `${assistant.name.slice(0, 20)}...` : assistant.name} {#if $threadsStore.selectedAssistantId === assistant.id} {/if}