From dd42156e2242eae2957ddfe17fa7403d725cd41d Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Fri, 18 Oct 2024 19:05:49 -0500 Subject: [PATCH] minor change --- src/lib/scss/custom/pages/_chat.scss | 2 +- .../[conversationId]/chat-box.svelte | 59 +++++++++---------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/lib/scss/custom/pages/_chat.scss b/src/lib/scss/custom/pages/_chat.scss index 8d6fa249..43976cf0 100644 --- a/src/lib/scss/custom/pages/_chat.scss +++ b/src/lib/scss/custom/pages/_chat.scss @@ -794,7 +794,7 @@ flex-wrap: wrap; overflow-y: auto; scrollbar-width: none; - min-height: 100px; + min-height: 80px; max-height: 180px; .conv-tag-unit { diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index cfc6ce07..192553b2 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -1476,36 +1476,35 @@ openLogs()}>View Log {/if} {#if !isLite && (!isLoadInstantLog || !isOpenUserAddStateModal)} -
  • - - - States - - - {#if !isOpenUserAddStateModal} - toggleUserAddStateModal()} - > - Add States - - {/if} - clearUserAddStates()} - > - Clear States - - - -
  • +
  • + + + States + + + {#if !isOpenUserAddStateModal} + toggleUserAddStateModal()} + > + Add States + + {/if} + clearUserAddStates()} + > + Clear States + + + +
  • + {/if} + {#if currentUser?.role === UserRole.Admin} + toggleTagModal()}> + Add Tags + {/if} - toggleTagModal()} - > - Add Tags - {#if agent?.id === LERNER_ID && mode === TRAINING_MODE} handleSaveKnowledge()}>Save Knowledge {/if} @@ -1539,7 +1538,7 @@ on:click={() => endChat()} > {#if !isLite} - End + Exit {/if}