Skip to content

Commit e0945f7

Browse files
author
Jicheng Lu
committed
refine conv table
1 parent 1611fc9 commit e0945f7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/lib/scss/custom/pages/_conversation.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
.list-title {
99
width: 40%;
10+
min-width: 100px;
11+
max-width: 200px;
1012
white-space: nowrap;
1113
overflow: hidden;
1214
text-overflow: ellipsis;

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@
224224
selectedTags = conversation?.tags || [];
225225
initUserSentMessages(dialogs);
226226
initChatView();
227+
handlePaneResize();
227228
const messageDraft = getMessageDraft();
228229
text = messageDraft || '';
229-
handlePaneResize();
230230
231231
signalr.onMessageReceivedFromClient = onMessageReceivedFromClient;
232232
signalr.onMessageReceivedFromCsr = onMessageReceivedFromClient;

src/routes/page/conversation/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@
342342
function handleStateSearch(query) {
343343
return new Promise((resolve) => {
344344
getConversationStateSearchKeys({
345-
query: query
345+
query: query,
346+
keyLimit: 20
346347
}).then(res => {
347348
resolve(res || []);
348349
}).catch(() => resolve([]));
@@ -440,7 +441,7 @@
440441
</CardBody>
441442
<CardBody>
442443
<div class="table-responsive thin-scrollbar">
443-
<Table class="align-middle nowrap" style="table-layout: fixed;" bordered>
444+
<Table class="align-middle nowrap" bordered>
444445
<thead>
445446
<tr>
446447
<th scope="col" class="list-title">{$_('Title')}</th>

0 commit comments

Comments
 (0)