feat(ui): enhance styling and layout consistency across components

- Updated background colors and margins in ListSpaceSidebar, KnowledgeBase, OrganizationList, and other components for a unified visual experience.
- Improved padding, font sizes, and hover effects in various UI elements to enhance readability and user interaction.
- Introduced scrollbar styling and box shadows for better aesthetics and functionality in sidebar components.

This update improves the overall user interface by ensuring consistent styling and enhancing the usability of components across the application.
This commit is contained in:
wizardchen
2026-02-06 23:19:26 +08:00
committed by lyingbug
parent 4aef8938f2
commit d3324d4592
8 changed files with 132 additions and 65 deletions
@@ -593,7 +593,7 @@ const sharedKbsByOrg = computed(() => {
return sharedKbs.value.filter(s => s.organization_id === orgId)
})
// 各空间下的共享知识库数量(用于侧栏展示)
// 各空间下的共享知识库数量(用于侧栏展示,含 0 的也显示)
const sharedCountByOrg = computed<Record<string, number>>(() => {
const map: Record<string, number> = {}
sharedKbs.value.forEach(s => {
@@ -601,6 +601,9 @@ const sharedCountByOrg = computed<Record<string, number>>(() => {
if (!id) return
map[id] = (map[id] || 0) + 1
})
;(orgStore.organizations || []).forEach(org => {
if (map[org.id] === undefined) map[org.id] = 0
})
return map
})
@@ -1031,7 +1034,7 @@ const handleUploadFinishedEvent = (event: Event) => {
<style scoped lang="less">
.kb-list-container {
padding: 24px 32px;
margin: 0 16px;
margin: 0 16px 0 4px;
height: calc(100vh);
box-sizing: border-box;
flex: 1;
@@ -1077,7 +1080,7 @@ const handleUploadFinishedEvent = (event: Event) => {
display: flex;
flex: 1;
min-height: 0;
background: #fff;
background: #fafbfc;
border: 1px solid #e7ebf0;
border-radius: 10px;
overflow: hidden;
@@ -1089,6 +1092,7 @@ const handleUploadFinishedEvent = (event: Event) => {
overflow-y: auto;
overflow-x: hidden;
padding: 12px;
background: #fafbfc;
}
.header-subtitle {