diff --git a/frontend/src/components/KnowledgeBaseSelector.vue b/frontend/src/components/KnowledgeBaseSelector.vue index c1c7c178..c92dc803 100644 --- a/frontend/src/components/KnowledgeBaseSelector.vue +++ b/frontend/src/components/KnowledgeBaseSelector.vue @@ -31,9 +31,19 @@ +
+ + + + + + + + +
{{ kb.name }} - {{ kb.docsCount }} {{ $t('knowledgeBase.documents') }} + ({{ kb.type === 'faq' ? (kb.chunk_count || 0) : (kb.knowledge_count || 0) }})
@@ -61,7 +71,9 @@ import { useI18n } from 'vue-i18n' interface KnowledgeBase { id: string name: string - docsCount?: number + type?: 'document' | 'faq' + knowledge_count?: number + chunk_count?: number embedding_model_id?: string summary_model_id?: string } @@ -438,9 +450,22 @@ watch(() => props.visible, async (v) => { width: 10px; height: 10px; } -.kb-name-wrap { display:flex; flex-direction: column; min-width: 0; } +.kb-icon { + width: 16px; + height: 16px; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + color: #059669; + + &.faq { + color: #0052d9; + } +} +.kb-name-wrap { display:flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; } .kb-name { font-size: 12px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; } -.kb-docs { font-size: 11px; color: #8b9196; margin-top: 1px; } +.kb-docs { font-size: 11px; color: #8b9196; flex-shrink: 0; } .kb-empty { padding: 20px 8px; text-align: center; color: #9aa0a6; font-size: 12px; }