feat(ui): update icon usage and enhance styling in share settings and knowledge base components
- Replaced organization icons with a new control platform icon in AgentShareSettings, ShareKnowledgeBaseDialog, and KBShareSettings for consistency. - Added new styles for the agent icon to improve visual representation. - Adjusted padding, margins, and layout in various components including ListSpaceSidebar, KnowledgeBase, and OrganizationList to enhance overall UI consistency and readability. - Introduced hover effects and popover details for knowledge cards to improve user interaction and information accessibility. This update enhances the user interface by ensuring consistent iconography and improving the layout and interaction design across components.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user