Skip to content

Commit

Permalink
Merge pull request #250 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
minor change
  • Loading branch information
iceljc authored Oct 19, 2024
2 parents dbe8445 + dd42156 commit b088798
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/lib/scss/custom/pages/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
59 changes: 29 additions & 30 deletions src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1476,36 +1476,35 @@
<DropdownItem on:click={() => openLogs()}>View Log</DropdownItem>
{/if}
{#if !isLite && (!isLoadInstantLog || !isOpenUserAddStateModal)}
<li>
<Dropdown direction="right" class="state-menu">
<DropdownToggle caret class="dropdown-item">
States
</DropdownToggle>
<DropdownMenu>
{#if !isOpenUserAddStateModal}
<DropdownItem
disabled={disableAction}
on:click={() => toggleUserAddStateModal()}
>
Add States
</DropdownItem>
{/if}
<DropdownItem
disabled={disableAction}
on:click={() => clearUserAddStates()}
>
Clear States
</DropdownItem>
</DropdownMenu>
</Dropdown>
</li>
<li>
<Dropdown direction="right" class="state-menu">
<DropdownToggle caret class="dropdown-item">
States
</DropdownToggle>
<DropdownMenu>
{#if !isOpenUserAddStateModal}
<DropdownItem
disabled={disableAction}
on:click={() => toggleUserAddStateModal()}
>
Add States
</DropdownItem>
{/if}
<DropdownItem
disabled={disableAction}
on:click={() => clearUserAddStates()}
>
Clear States
</DropdownItem>
</DropdownMenu>
</Dropdown>
</li>
{/if}
{#if currentUser?.role === UserRole.Admin}
<DropdownItem on:click={() => toggleTagModal()}>
Add Tags
</DropdownItem>
{/if}
<DropdownItem
disabled={currentUser?.role !== UserRole.Admin}
on:click={() => toggleTagModal()}
>
Add Tags
</DropdownItem>
{#if agent?.id === LERNER_ID && mode === TRAINING_MODE}
<DropdownItem on:click={() => handleSaveKnowledge()}>Save Knowledge</DropdownItem>
{/if}
Expand Down Expand Up @@ -1539,7 +1538,7 @@
on:click={() => endChat()}
>
{#if !isLite}
<span class="me-2">End</span>
<span class="me-2">Exit</span>
{/if}
<i class="mdi mdi-window-close" />
</button>
Expand Down

0 comments on commit b088798

Please sign in to comment.