We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aefca28 commit 3f448acCopy full SHA for 3f448ac
1 file changed
frontend/src/views/chat/ChatListContainer.vue
@@ -214,7 +214,11 @@ function onChatRenamed(chat: Chat) {
214
/>
215
</el-header>
216
<el-main class="chat-list">
217
+ <div v-if="!computedChatList.length" class="empty-search">
218
+ {{ !!search ? $t('datasource.relevant_content_found') : $t('dashboard.no_chat') }}
219
+ </div>
220
<ChatList
221
+ v-else
222
v-model:loading="_loading"
223
:current-chat-id="_currentChatId"
224
:chat-list="computedChatList"
@@ -294,6 +298,16 @@ function onChatRenamed(chat: Chat) {
294
298
295
299
.chat-list {
296
300
padding: 0 0 20px 0;
301
+
302
+ .empty-search {
303
+ width: 100%;
304
+ text-align: center;
305
+ margin-top: 80px;
306
+ color: #646a73;
307
+ font-weight: 400;
308
+ font-size: 14px;
309
+ line-height: 22px;
310
+ }
297
311
}
312
313
</style>
0 commit comments