Skip to content

Commit

Permalink
Merge pull request #197 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
add knowledge data id
  • Loading branch information
iceljc authored Aug 19, 2024
2 parents b8dc559 + d9d1225 commit 05b48c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/scss/custom/pages/_knowledgebase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
overflow: hidden;

.knowledge-text {
width: 40%;
width: 30%;
max-width: 50px;

.ellipsis {
Expand Down
1 change: 1 addition & 0 deletions src/routes/page/knowledge-base/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@
<Table class="table align-middle table-nowrap table-hover mb-0">
<thead>
<tr>
<th scope="col">{$_('Id')}</th>
<th scope="col">{$_('Question')}</th>
<th scope="col">{$_('Answer')}</th>
<th></th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
{/if}

<tr in:fly={{ y: -5, duration: 800 }}>
<td class="knowledge-text">
<div class="ellipsis">{data?.id || ''}</div>
</td>
<td class="knowledge-text">
<div class="ellipsis">{data?.data?.question || data?.data?.text || ''}</div>
</td>
Expand Down

0 comments on commit 05b48c3

Please sign in to comment.