Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
feat(ui): update icon usage and enhance styling in share settings and knowledge base components
wizardchen4aef8938f218
diff --git a/frontend/src/components/AgentShareSettings.vue b/frontend/src/components/AgentShareSettings.vueindex c5184b4d2..150c8db99 100644--- a/frontend/src/components/AgentShareSettings.vue+++ b/frontend/src/components/AgentShareSettings.vue@@ -51,7 +51,7 @@{{ org.share_count ?? 0 }}</span><span class="org-meta-tag">- <img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />+ <t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />{{ org.agent_share_count ?? 0 }}</span></div>@@ -107,7 +107,7 @@</span><t-tooltip :content="$t('organization.share.spaceAgentShareCountTip')" placement="top"><span class="org-meta-tag">- <img src="@/assets/img/agent.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />+ <t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}</span></t-tooltip>@@ -377,6 +377,10 @@ defineExpose({ loadShares })height: 12px;opacity: 0.75;}+ .org-meta-icon-agent {+ font-size: 12px;+ opacity: 0.75;+ }}.share-actions {display: flex;@@ -486,6 +490,10 @@ defineExpose({ loadShares })height: 12px;opacity: 0.75;}+ .org-meta-icon-agent {+ font-size: 12px;+ opacity: 0.75;+ }}</style>diff --git a/frontend/src/components/ListSpaceSidebar.vue b/frontend/src/components/ListSpaceSidebar.vueindex 33040a3a9..7271a04b4 100644--- a/frontend/src/components/ListSpaceSidebar.vue+++ b/frontend/src/components/ListSpaceSidebar.vue@@ -132,13 +132,13 @@ onMounted(() => {</script><style scoped lang="less">-// 作为整体内容区左侧一栏,与主内容同属一块区域+// 左侧筛选栏,与主内容区协调、不抢戏.list-space-sidebar {- width: 176px;+ width: 200px;flex-shrink: 0;background: #fafbfc;border-right: 1px solid #e7ebf0;- padding: 12px;+ padding: 16px;display: flex;flex-direction: column;min-height: 0;@@ -150,7 +150,7 @@ onMounted(() => {align-items: center;justify-content: space-between;gap: 8px;- margin-bottom: 8px;+ margin-bottom: 10px;flex-shrink: 0;min-height: 28px;@@ -216,7 +216,7 @@ onMounted(() => {.sidebar-nav {display: flex;flex-direction: column;- gap: 4px;+ gap: 5px;flex: 1;min-height: 0;overflow-y: auto;@@ -227,7 +227,7 @@ onMounted(() => {display: flex;align-items: center;justify-content: space-between;- padding: 6px 8px;+ padding: 8px 10px;border-radius: 6px;color: #4e5969;cursor: pointer;@@ -266,7 +266,7 @@ onMounted(() => {font-size: 12px;color: #86909c;font-weight: 500;- padding: 2px 5px;+ padding: 3px 6px;border-radius: 8px;background: #f7f9fc;margin-left: 6px;@@ -310,8 +310,8 @@ onMounted(() => {}.sidebar-section {- padding: 8px 8px 2px;- margin-top: 2px;+ padding: 10px 8px 2px;+ margin-top: 4px;border-top: 1px solid #e7ebf0;.section-title {diff --git a/frontend/src/components/ShareKnowledgeBaseDialog.vue b/frontend/src/components/ShareKnowledgeBaseDialog.vueindex 637fa1866..08de130fb 100644--- a/frontend/src/components/ShareKnowledgeBaseDialog.vue+++ b/frontend/src/components/ShareKnowledgeBaseDialog.vue@@ -51,7 +51,7 @@{{ org.share_count ?? 0 }}</span><span class="org-meta-tag">- <img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />+ <t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />{{ org.agent_share_count ?? 0 }}</span></div>@@ -455,6 +455,12 @@ function handleGoToOrgSettings(orgId: string) {height: 12px;opacity: 0.75;}++ .org-meta-icon-agent {+ font-size: 12px;+ color: var(--td-text-color-secondary);+ opacity: 0.75;+ }}</style>diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.tsindex 470c3138b..19409fcb3 100755--- a/frontend/src/i18n/locales/en-US.ts+++ b/frontend/src/i18n/locales/en-US.ts@@ -111,6 +111,9 @@ export default {documentContent: 'Document Content',importTime: 'Import Time',createTime: 'Create Time',+ createdAt: 'Created',+ updatedAt: 'Updated',+ clickToViewFull: 'Click card to view full text and chunks',characters: 'chars',segment: 'Segment',chunkCount: 'Total {count} segments',diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.tsindex c7cdcf7d5..27d713d51 100755--- a/frontend/src/i18n/locales/zh-CN.ts+++ b/frontend/src/i18n/locales/zh-CN.ts@@ -110,6 +110,9 @@ export default {documentContent: "文档内容",importTime: "导入时间",createTime: "创建时间",+ createdAt: "创建",+ updatedAt: "更新",+ clickToViewFull: "点击卡片查看全文与分段",characters: "字符",segment: "片段",chunkCount: "共 {count} 个片段",diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vueindex a17426b2e..78a681707 100644--- a/frontend/src/views/agent/AgentList.vue+++ b/frontend/src/views/agent/AgentList.vue@@ -874,8 +874,8 @@ defineExpose({<style scoped lang="less">.agent-list-container {- padding: 24px 10px;- margin: 0 20px;+ padding: 24px 32px;+ margin: 0 16px;height: calc(100vh);box-sizing: border-box;flex: 1;@@ -899,13 +899,13 @@ defineExpose({min-width: 0;overflow-y: auto;overflow-x: hidden;- padding: 16px;+ padding: 12px;}.header {display: flex;align-items: center;- margin-bottom: 16px;+ margin-bottom: 20px;.header-title {display: flex;@@ -1067,13 +1067,13 @@ defineExpose({.agent-card-wrap {display: grid;- gap: 12px;+ gap: 20px;grid-template-columns: 1fr;}.agent-card {border: 1px solid #f0f0f0;- border-radius: 10px;+ border-radius: 12px;overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);@@ -1081,10 +1081,10 @@ defineExpose({position: relative;cursor: pointer;transition: all 0.25s ease;- padding: 12px 14px;+ padding: 18px 20px;display: flex;flex-direction: column;- height: 132px;+ height: 160px;&:hover {border-color: #07c05f;@@ -1137,12 +1137,56 @@ defineExpose({position: relative;z-index: 1;}++ .card-header {+ margin-bottom: 10px;+ }++ .card-title {+ font-size: 16px;+ line-height: 24px;+ }++ .card-content {+ margin-bottom: 10px;+ }++ .card-description {+ font-size: 13px;+ line-height: 20px;+ }++ .card-bottom {+ padding-top: 10px;+ }++ .more-wrap {+ width: 28px;+ height: 28px;++ .more-icon {+ width: 16px;+ height: 16px;+ }+ }++ .builtin-avatar {+ width: 32px;+ height: 32px;+ border-radius: 8px;+ }++ .edit-btn {+ width: 32px;+ height: 32px;+ border-radius: 8px;+ }}.card-decoration {position: absolute;- top: 10px;- right: 40px;+ top: 12px;+ right: 44px;display: flex;align-items: flex-start;gap: 4px;@@ -1207,13 +1251,13 @@ defineExpose({display: flex;align-items: center;justify-content: center;- width: 28px;- height: 28px;- border-radius: 6px;+ width: 32px;+ height: 32px;+ border-radius: 8px;flex-shrink: 0;&.agent-emoji {- font-size: 16px;+ font-size: 18px;line-height: 1;background: rgba(0, 0, 0, 0.04);}@@ -1231,11 +1275,11 @@ defineExpose({.edit-btn {display: flex;- width: 28px;- height: 28px;+ width: 32px;+ height: 32px;justify-content: center;align-items: center;- border-radius: 6px;+ border-radius: 8px;cursor: pointer;flex-shrink: 0;transition: all 0.2s ease;@@ -1249,11 +1293,11 @@ defineExpose({.more-wrap {display: flex;- width: 24px;- height: 24px;+ width: 28px;+ height: 28px;justify-content: center;align-items: center;- border-radius: 6px;+ border-radius: 8px;cursor: pointer;flex-shrink: 0;transition: all 0.2s ease;@@ -1274,8 +1318,8 @@ defineExpose({}.more-icon {- width: 14px;- height: 14px;+ width: 16px;+ height: 16px;}}diff --git a/frontend/src/views/knowledge/KnowledgeBase.vue b/frontend/src/views/knowledge/KnowledgeBase.vueindex 347e6f39a..a8e5a1f88 100644--- a/frontend/src/views/knowledge/KnowledgeBase.vue+++ b/frontend/src/views/knowledge/KnowledgeBase.vue@@ -164,7 +164,7 @@ const editingTagName = ref('');const editingTagSubmitting = ref(false);const getPageSize = () => {const viewportHeight = window.innerHeight || document.documentElement.clientHeight;- const itemHeight = 152;+ const itemHeight = 148;let itemsInView = Math.floor(viewportHeight / itemHeight) * 5;pageSize = Math.max(35, itemsInView);}@@ -182,6 +182,16 @@ const formatDocTime = (time?: string) => {return formatted.slice(2, 16) // "YY-MM-DD HH:mm"}+// 格式化文件大小,用于气泡等展示+const formatFileSize = (bytes?: number | string) => {+ if (bytes == null || bytes === '') return ''+ const n = typeof bytes === 'string' ? parseInt(bytes, 10) : bytes+ if (Number.isNaN(n) || n <= 0) return ''+ if (n < 1024) return `${n} B`+ if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`+ return `${(n / (1024 * 1024)).toFixed(1)} MB`+}+// 获取知识条目的显示类型const getKnowledgeType = (item: any) => {if (item.type === 'url') {@@ -639,6 +649,45 @@ const openCardDetails = (item: KnowledgeCard) => {getCardDetails(item);};+// 悬停知识卡片时跟随鼠标显示详情气泡+const hoveredCardItem = ref<KnowledgeCard | null>(null);+const cardPopoverPos = ref({ x: 0, y: 0 });+const CARD_POPOVER_OFFSET = 16;+const cardHoverShowDelay = 300;+let cardHoverTimer: ReturnType<typeof setTimeout> | null = null;++const onCardMouseEnter = (ev: MouseEvent, item: KnowledgeCard) => {+ if (cardHoverTimer) {+ clearTimeout(cardHoverTimer);+ cardHoverTimer = null;+ }+ cardHoverTimer = setTimeout(() => {+ cardHoverTimer = null;+ hoveredCardItem.value = item;+ cardPopoverPos.value = {+ x: ev.clientX + CARD_POPOVER_OFFSET,+ y: ev.clientY + CARD_POPOVER_OFFSET,+ };+ }, cardHoverShowDelay);+};++const onCardMouseMove = (ev: MouseEvent) => {+ if (hoveredCardItem.value) {+ cardPopoverPos.value = {+ x: ev.clientX + CARD_POPOVER_OFFSET,+ y: ev.clientY + CARD_POPOVER_OFFSET,+ };+ }+};++const onCardMouseLeave = () => {+ if (cardHoverTimer) {+ clearTimeout(cardHoverTimer);+ cardHoverTimer = null;+ }+ hoveredCardItem.value = null;+};+const delCard = (index: number, item: KnowledgeCard) => {knowledgeIndex.value = index;knowledge.value = item;@@ -1403,6 +1452,9 @@ async function createNewSession(value: string): Promise<void> {v-for="(item, index) in cardList":key="index"@click="openCardDetails(item)"+ @mouseenter="onCardMouseEnter($event, item)"+ @mousemove="onCardMouseMove($event)"+ @mouseleave="onCardMouseLeave"><div class="card-content"><div class="card-content-nav">@@ -1493,6 +1545,48 @@ async function createNewSession(value: string): Promise<void> {</div></div></div>+ <!-- 悬停卡片时跟随鼠标的详情气泡 -->+ <Teleport to="body">+ <div+ v-show="hoveredCardItem"+ class="knowledge-card-hover-popover"+ :style="{ left: cardPopoverPos.x + 'px', top: cardPopoverPos.y + 'px' }"+ >+ <template v-if="hoveredCardItem">+ <div class="card-popover-title">{{ hoveredCardItem.file_name }}</div>+ <div v-if="hoveredCardItem.parse_status === 'processing' || hoveredCardItem.parse_status === 'pending'" class="card-popover-status parsing">+ <t-icon name="loading" size="14px" /> {{ t('knowledgeBase.parsingInProgress') }}+ </div>+ <div v-else-if="hoveredCardItem.parse_status === 'failed'" class="card-popover-status failure">+ <t-icon name="close-circle" size="14px" /> {{ t('knowledgeBase.parsingFailed') }}+ <span v-if="(hoveredCardItem as any).error_message" class="card-popover-error-msg">{{ (hoveredCardItem as any).error_message }}</span>+ </div>+ <div v-else-if="hoveredCardItem.parse_status === 'draft'" class="card-popover-status draft">+ {{ t('knowledgeBase.draft') }}+ </div>+ <template v-else>+ <div v-if="hoveredCardItem.description" class="card-popover-desc">{{ hoveredCardItem.description }}</div>+ <div v-if="(hoveredCardItem as any).source" class="card-popover-source" :title="(hoveredCardItem as any).source">+ <t-icon name="link" size="12px" /> {{ (hoveredCardItem as any).source }}+ </div>+ <div class="card-popover-extra">+ <span v-if="(hoveredCardItem as any).created_at" class="card-popover-created">+ {{ t('knowledgeBase.createdAt') || '创建' }}:{{ formatDocTime((hoveredCardItem as any).created_at) }}+ </span>+ <span v-if="formatFileSize((hoveredCardItem as any).file_size)" class="card-popover-size">+ {{ formatFileSize((hoveredCardItem as any).file_size) }}+ </span>+ </div>+ </template>+ <div class="card-popover-meta">+ <span class="card-popover-time">{{ t('knowledgeBase.updatedAt') || '更新' }}:{{ formatDocTime(hoveredCardItem.updated_at) }}</span>+ <span v-if="getTagName(hoveredCardItem.tag_id)" class="card-popover-tag">{{ getTagName(hoveredCardItem.tag_id) }}</span>+ <span class="card-popover-type">{{ getKnowledgeType(hoveredCardItem) }}</span>+ </div>+ <div class="card-popover-hint">{{ t('knowledgeBase.clickToViewFull') || '点击卡片查看全文与分段' }}</div>+ </template>+ </div>+ </Teleport></template><template v-else><div class="doc-empty-state">@@ -1659,12 +1753,13 @@ async function createNewSession(value: string): Promise<void> {.knowledge-layout {display: flex;flex-direction: column;+ margin: 0 16px;gap: 16px;height: 100%;flex: 1;width: 100%;min-width: 0;- padding: 24px 30px 32px;+ padding: 24px 32px 32px;box-sizing: border-box;}@@ -1679,11 +1774,12 @@ async function createNewSession(value: string): Promise<void> {overflow: hidden;}+// 与列表页左侧筛选栏协调:宽度、内边距、项间距.tag-sidebar {- width: 176px;+ width: 200px;background: #fafbfc;border-right: 1px solid #e7ebf0;- padding: 12px;+ padding: 16px;display: flex;flex-direction: column;flex-shrink: 0;@@ -1694,7 +1790,7 @@ async function createNewSession(value: string): Promise<void> {display: flex;align-items: center;justify-content: space-between;- margin-bottom: 8px;+ margin-bottom: 10px;color: #1d2129;.sidebar-title {@@ -1705,7 +1801,7 @@ async function createNewSession(value: string): Promise<void> {font-weight: 600;.sidebar-count {- font-size: 11px;+ font-size: 12px;color: #86909c;}}@@ -1743,31 +1839,32 @@ async function createNewSession(value: string): Promise<void> {}.tag-search-bar {- margin-bottom: 8px;+ margin-bottom: 10px;:deep(.t-input) {- font-size: 12px;+ font-size: 13px;background-color: #f7f9fc;border-color: #e5e9f2;+ border-radius: 6px;}}.tag-list {display: flex;flex-direction: column;- gap: 4px;+ gap: 5px;flex: 1;min-height: 0;overflow-y: auto;.tag-load-more {- padding: 6px 0 0;+ padding: 8px 0 0;display: flex;justify-content: center;:deep(.t-button) {padding: 0;- font-size: 11px;+ font-size: 12px;color: #00a870;}}@@ -1776,12 +1873,12 @@ async function createNewSession(value: string): Promise<void> {display: flex;align-items: center;justify-content: space-between;- padding: 6px 8px;+ padding: 8px 10px;border-radius: 6px;color: #4e5969;cursor: pointer;transition: all 0.2s ease;- font-size: 12px;+ font-size: 13px;.tag-list-left {display: flex;@@ -1809,19 +1906,22 @@ async function createNewSession(value: string): Promise<void> {.tag-list-right {display: flex;align-items: center;- gap: 5px;- margin-left: 6px;- min-width: 0;+ gap: 6px;+ margin-left: 8px;+ flex-shrink: 0;}.tag-count {- font-size: 11px;+ font-size: 12px;color: #86909c;font-weight: 500;- padding: 2px 5px;+ min-width: 28px;+ padding: 3px 6px;border-radius: 8px;background: #f7f9fc;transition: all 0.2s ease;+ text-align: center;+ box-sizing: border-box;}&:hover {@@ -1956,6 +2056,12 @@ async function createNewSession(value: string): Promise<void> {.tag-more {display: flex;align-items: center;+ opacity: 0;+ transition: opacity 0.2s ease;+ }++ &:hover .tag-more {+ opacity: 1;}.tag-more-btn {@@ -1967,12 +2073,10 @@ async function createNewSession(value: string): Promise<void> {border-radius: 4px;color: #86909c;transition: all 0.2s ease;- opacity: 0.6;&:hover {background: #f3f5f7;color: #4e5969;- opacity: 1;}}}@@ -2032,7 +2136,7 @@ async function createNewSession(value: string): Promise<void> {display: flex;flex-direction: column;min-height: 0;- padding: 16px;+ padding: 12px;overflow: hidden;}@@ -2044,10 +2148,10 @@ async function createNewSession(value: string): Promise<void> {}.doc-filter-bar {- padding: 0px 0px 10px 0px;+ padding: 0 0 12px 0;flex-shrink: 0;display: flex;- gap: 10px;+ gap: 12px;align-items: center;.doc-search-input {@@ -2333,8 +2437,9 @@ async function createNewSession(value: string): Promise<void> {.faq-manager-wrapper {flex: 1;- padding: 24px 30px;+ padding: 24px 32px;overflow-y: auto;+ margin: 0 16px;}@media (max-width: 1250px) and (min-width: 1045px) {@@ -2380,8 +2485,8 @@ async function createNewSession(value: string): Promise<void> {.doc-card-list {box-sizing: border-box;display: grid;- grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));- gap: 12px;+ grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));+ gap: 14px;align-content: flex-start;width: 100%;}@@ -2512,10 +2617,10 @@ async function createNewSession(value: string): Promise<void> {}.knowledge-card {- min-width: 240px;+ min-width: 248px;border: 1px solid #e7e9eb;- height: 140px;- border-radius: 8px;+ height: 148px;+ border-radius: 9px;overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);@@ -2525,11 +2630,11 @@ async function createNewSession(value: string): Promise<void> {transition: border-color 0.2s ease, box-shadow 0.2s ease;.card-content {- padding: 14px 16px 12px;+ padding: 15px 17px 13px;}.card-analyze {- height: 50px;+ height: 52px;display: flex;}@@ -2555,15 +2660,15 @@ async function createNewSession(value: string): Promise<void> {display: flex;justify-content: space-between;align-items: flex-start;- margin-bottom: 10px;+ margin-bottom: 11px;gap: 8px;}.card-content-title {flex: 1;min-width: 0;- height: 28px;- line-height: 28px;+ height: 29px;+ line-height: 29px;display: inline-block;overflow: hidden;text-overflow: ellipsis;@@ -2578,11 +2683,11 @@ async function createNewSession(value: string): Promise<void> {.more-wrap {flex-shrink: 0;display: flex;- width: 24px;- height: 24px;+ width: 25px;+ height: 25px;justify-content: center;align-items: center;- border-radius: 4px;+ border-radius: 5px;cursor: pointer;}@@ -2609,15 +2714,15 @@ async function createNewSession(value: string): Promise<void> {font-family: "PingFang SC";font-size: 12px;font-weight: 400;- line-height: 18px;+ line-height: 19px;}.card-bottom {position: absolute;bottom: 0;- padding: 0 16px;+ padding: 0 17px;box-sizing: border-box;- height: 32px;+ height: 34px;width: 100%;display: flex;align-items: center;@@ -2649,6 +2754,135 @@ async function createNewSession(value: string): Promise<void> {box-shadow: 0 2px 8px rgba(7, 192, 95, 0.12);}+/* 悬停知识卡片时跟随鼠标的详情气泡 */+.knowledge-card-hover-popover {+ position: fixed;+ z-index: 9999;+ pointer-events: none;+ min-width: 220px;+ max-width: 360px;+ padding: 12px 14px;+ background: #fff;+ border: 1px solid #e7ebf0;+ border-radius: 8px;+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);+ font-family: "PingFang SC", -apple-system, sans-serif;+ transition: opacity 0.15s ease;++ .card-popover-title {+ font-size: 14px;+ font-weight: 600;+ color: #1d2129;+ margin-bottom: 8px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ .card-popover-status {+ font-size: 12px;+ margin-bottom: 6px;+ display: flex;+ align-items: center;+ gap: 6px;++ &.parsing {+ color: #07c05f;+ }++ &.failure {+ color: #fa5151;+ }++ &.draft {+ color: #b05b00;+ }+ }++ .card-popover-desc {+ font-size: 12px;+ color: #4e5969;+ line-height: 1.5;+ margin-bottom: 8px;+ display: -webkit-box;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 5;+ line-clamp: 5;+ overflow: hidden;+ }++ .card-popover-error-msg {+ display: block;+ margin-top: 4px;+ font-size: 11px;+ color: #fa5151;+ opacity: 0.95;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ max-width: 280px;+ }++ .card-popover-source {+ font-size: 11px;+ color: #0052d9;+ margin-bottom: 6px;+ display: flex;+ align-items: center;+ gap: 4px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ max-width: 100%;+ }++ .card-popover-extra {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 10px;+ font-size: 11px;+ color: #86909c;+ margin-bottom: 6px;+ }++ .card-popover-created,+ .card-popover-size {+ flex-shrink: 0;+ }++ .card-popover-meta {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 8px;+ font-size: 11px;+ color: #86909c;+ }++ .card-popover-tag {+ padding: 1px 6px;+ background: #e6f7ec;+ color: #07c05f;+ border-radius: 4px;+ }++ .card-popover-type {+ padding: 1px 6px;+ background: #e8e9eb;+ color: #4e5969;+ border-radius: 4px;+ }++ .card-popover-hint {+ margin-top: 8px;+ padding-top: 8px;+ border-top: 1px solid #f0f1f3;+ font-size: 11px;+ color: #86909c;+ }+}+.url-import-form {padding: 8px 0;diff --git a/frontend/src/views/knowledge/KnowledgeBaseList.vue b/frontend/src/views/knowledge/KnowledgeBaseList.vueindex 6b71053b4..0fc48d8b2 100644--- a/frontend/src/views/knowledge/KnowledgeBaseList.vue+++ b/frontend/src/views/knowledge/KnowledgeBaseList.vue@@ -1030,8 +1030,8 @@ const handleUploadFinishedEvent = (event: Event) => {<style scoped lang="less">.kb-list-container {- padding: 24px 10px;- margin: 0 20px;+ padding: 24px 32px;+ margin: 0 16px;height: calc(100vh);box-sizing: border-box;flex: 1;@@ -1044,7 +1044,7 @@ const handleUploadFinishedEvent = (event: Event) => {display: flex;align-items: center;justify-content: space-between;- margin-bottom: 16px;+ margin-bottom: 20px;.header-title {display: flex;@@ -1088,7 +1088,7 @@ const handleUploadFinishedEvent = (event: Event) => {min-width: 0;overflow-y: auto;overflow-x: hidden;- padding: 16px;+ padding: 12px;}.header-subtitle {@@ -1370,13 +1370,13 @@ const handleUploadFinishedEvent = (event: Event) => {.kb-card-wrap {display: grid;- gap: 12px;+ gap: 20px;grid-template-columns: 1fr;}.kb-card {border: 1px solid #f0f0f0;- border-radius: 10px;+ border-radius: 12px;overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);@@ -1384,10 +1384,10 @@ const handleUploadFinishedEvent = (event: Event) => {position: relative;cursor: pointer;transition: all 0.25s ease;- padding: 12px 14px;+ padding: 18px 20px;display: flex;flex-direction: column;- height: 132px;+ height: 160px;&:hover {border-color: #07c05f;@@ -1414,10 +1414,10 @@ const handleUploadFinishedEvent = (event: Event) => {position: absolute;top: 0;right: 0;- width: 50px;- height: 50px;+ width: 60px;+ height: 60px;background: linear-gradient(135deg, rgba(7, 192, 95, 0.08) 0%, transparent 100%);- border-radius: 0 10px 0 100%;+ border-radius: 0 12px 0 100%;pointer-events: none;z-index: 0;}@@ -1440,10 +1440,10 @@ const handleUploadFinishedEvent = (event: Event) => {position: absolute;top: 0;right: 0;- width: 50px;- height: 50px;+ width: 60px;+ height: 60px;background: linear-gradient(135deg, rgba(0, 82, 217, 0.08) 0%, transparent 100%);- border-radius: 0 10px 0 100%;+ border-radius: 0 12px 0 100%;pointer-events: none;z-index: 0;}@@ -1456,6 +1456,43 @@ const handleUploadFinishedEvent = (event: Event) => {position: relative;z-index: 1;}++ .card-header {+ margin-bottom: 10px;+ }++ .card-title {+ font-size: 16px;+ line-height: 24px;+ }++ .card-content {+ margin-bottom: 10px;+ }++ .card-description {+ font-size: 13px;+ line-height: 20px;+ }++ .card-bottom {+ padding-top: 10px;+ }++ .more-wrap {+ width: 28px;+ height: 28px;++ .more-icon {+ width: 16px;+ height: 16px;+ }+ }++ .card-more-btn {+ width: 28px;+ height: 28px;+ }}.card-header {diff --git a/frontend/src/views/knowledge/components/FAQEntryManager.vue b/frontend/src/views/knowledge/components/FAQEntryManager.vueindex 7896e54c6..7ae64431f 100644--- a/frontend/src/views/knowledge/components/FAQEntryManager.vue+++ b/frontend/src/views/knowledge/components/FAQEntryManager.vue@@ -3336,11 +3336,12 @@ watch(() => entries.value.map(e => ({overflow: hidden;}+// 与列表页左侧筛选栏、文档型知识库文档分类协调.faq-tag-panel {- width: 176px;+ width: 200px;background: #fafbfc;border-right: 1px solid #e7ebf0;- padding: 12px;+ padding: 16px;flex-shrink: 0;display: flex;flex-direction: column;@@ -3362,7 +3363,7 @@ watch(() => entries.value.map(e => ({display: flex;align-items: center;justify-content: space-between;- margin-bottom: 8px;+ margin-bottom: 10px;color: #1d2129;.sidebar-title {@@ -3373,7 +3374,7 @@ watch(() => entries.value.map(e => ({font-weight: 600;.sidebar-count {- font-size: 11px;+ font-size: 12px;color: #86909c;}}@@ -3426,16 +3427,17 @@ watch(() => entries.value.map(e => ({}.tag-search-bar {- margin-bottom: 8px;+ margin-bottom: 10px;:deep(.t-input) {- font-size: 11px;+ font-size: 12px;background-color: #f7f9fc;border-color: #e5e9f2;+ border-radius: 6px;}:deep(.t-input__inner) {- font-size: 12px;+ font-size: 13px;}:deep(.t-input__prefix-icon) {@@ -3446,7 +3448,7 @@ watch(() => entries.value.map(e => ({.faq-tag-list {display: flex;flex-direction: column;- gap: 4px;+ gap: 5px;flex: 1;min-height: 0;overflow-y: auto;@@ -3463,12 +3465,12 @@ watch(() => entries.value.map(e => ({display: flex;align-items: center;justify-content: space-between;- padding: 6px 8px;+ padding: 8px 10px;border-radius: 6px;color: #4e5969;cursor: pointer;transition: all 0.2s ease;- font-size: 12px;+ font-size: 13px;.faq-tag-left {display: flex;@@ -3497,20 +3499,22 @@ watch(() => entries.value.map(e => ({.faq-tag-right {display: flex;align-items: center;- gap: 5px;- margin-left: 6px;- min-width: 0;+ gap: 6px;+ margin-left: 8px;flex-shrink: 0;}.faq-tag-count {- font-size: 11px;+ font-size: 12px;color: #86909c;font-weight: 500;- padding: 2px 5px;+ min-width: 28px;+ padding: 3px 6px;border-radius: 8px;background: #f7f9fc;transition: all 0.2s ease;+ text-align: center;+ box-sizing: border-box;}&:hover {@@ -3692,15 +3696,15 @@ watch(() => entries.value.map(e => ({min-height: 0;display: flex;flex-direction: column;- padding: 16px;+ padding: 12px;overflow: hidden;}.faq-search-bar {- padding: 0px 0px 10px 0px;+ padding: 0 0 12px 0;flex-shrink: 0;display: flex;- gap: 10px;+ gap: 12px;align-items: center;.faq-search-input {@@ -3789,7 +3793,7 @@ watch(() => entries.value.map(e => ({justify-content: space-between;flex-wrap: wrap;gap: 12px;- margin-bottom: 12px;+ margin-bottom: 20px;flex-shrink: 0;.faq-header-title {diff --git a/frontend/src/views/knowledge/settings/KBShareSettings.vue b/frontend/src/views/knowledge/settings/KBShareSettings.vueindex 391be6f7b..2f3414a7d 100644--- a/frontend/src/views/knowledge/settings/KBShareSettings.vue+++ b/frontend/src/views/knowledge/settings/KBShareSettings.vue@@ -47,7 +47,7 @@{{ org.share_count ?? 0 }}</span><span class="org-meta-tag">- <img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />+ <t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />{{ org.agent_share_count ?? 0 }}</span></div>@@ -122,7 +122,7 @@{{ getOrgForShare(share.organization_id)?.share_count ?? 0 }}</span><span class="org-meta-tag">- <img src="@/assets/img/organization-grey.svg" class="org-meta-icon org-meta-icon-kb" alt="" aria-hidden="true" />+ <t-icon name="control-platform" class="org-meta-icon org-meta-icon-agent" />{{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }}</span></div>@@ -503,6 +503,10 @@ onMounted(async () => {height: 12px;opacity: 0.75;}+ .org-meta-icon-agent {+ font-size: 12px;+ opacity: 0.75;+ }}.share-actions {@@ -635,6 +639,10 @@ onMounted(async () => {height: 12px;opacity: 0.75;}+ .org-meta-icon-agent {+ font-size: 12px;+ opacity: 0.75;+ }}</style>diff --git a/frontend/src/views/organization/OrganizationList.vue b/frontend/src/views/organization/OrganizationList.vueindex e7f21fe6a..af9dd133b 100644--- a/frontend/src/views/organization/OrganizationList.vue+++ b/frontend/src/views/organization/OrganizationList.vue@@ -1201,8 +1201,8 @@ onUnmounted(() => {<style scoped lang="less">.org-list-container {- padding: 24px 10px;- margin: 0 20px;+ padding: 24px 32px;+ margin: 0 16px;height: calc(100vh);box-sizing: border-box;flex: 1;@@ -1226,13 +1226,13 @@ onUnmounted(() => {min-width: 0;overflow-y: auto;overflow-x: hidden;- padding: 16px;+ padding: 12px;}.header {display: flex;align-items: center;- margin-bottom: 16px;+ margin-bottom: 20px;.header-title {display: flex;@@ -1344,13 +1344,13 @@ onUnmounted(() => {.org-card-wrap {display: grid;- gap: 12px;+ gap: 20px;grid-template-columns: 1fr;}.org-card {border: 1px solid #e2e8f0;- border-radius: 10px;+ border-radius: 12px;overflow: hidden;box-sizing: border-box;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);@@ -1358,10 +1358,10 @@ onUnmounted(() => {position: relative;cursor: pointer;transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;- padding: 12px 14px;+ padding: 18px 20px;display: flex;flex-direction: column;- height: 132px;+ height: 160px;&::before {content: '';@@ -1398,20 +1398,48 @@ onUnmounted(() => {.card-header {position: relative;z-index: 2;+ margin-bottom: 10px;+ }++ .card-title {+ font-size: 16px;+ line-height: 24px;+ }++ .card-content {+ position: relative;+ z-index: 1;+ margin-bottom: 10px;}- .card-content,.card-bottom {position: relative;z-index: 1;+ padding-top: 10px;+ }++ .card-description {+ font-size: 13px;+ line-height: 20px;+ }++ .more-wrap {+ width: 28px;+ height: 28px;+ border-radius: 8px;++ .more-icon {+ width: 16px;+ height: 16px;+ }}}// 卡片装饰:协作网络图形.card-decoration {position: absolute;- top: 6px;- right: 12px;+ top: 8px;+ right: 14px;display: flex;align-items: flex-start;justify-content: flex-end;@@ -1421,8 +1449,8 @@ onUnmounted(() => {.card-deco-svg {display: block;- width: 48px;- height: 34px;+ width: 56px;+ height: 40px;}}@@ -1473,11 +1501,11 @@ onUnmounted(() => {.more-wrap {display: flex;- width: 24px;- height: 24px;+ width: 28px;+ height: 28px;justify-content: center;align-items: center;- border-radius: 6px;+ border-radius: 8px;cursor: pointer;flex-shrink: 0;transition: all 0.2s ease;@@ -1498,8 +1526,8 @@ onUnmounted(() => {}.more-icon {- width: 14px;- height: 14px;+ width: 16px;+ height: 16px;}}