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:
@@ -573,6 +573,7 @@ const sharedAgentsByOrg = computed(() => {
|
||||
return sharedAgents.value.filter(s => s.organization_id === orgId)
|
||||
})
|
||||
|
||||
// 各空间下的共享智能体数量(用于侧栏展示,含 0 的也显示)
|
||||
const sharedCountByOrg = computed<Record<string, number>>(() => {
|
||||
const map: Record<string, number> = {}
|
||||
sharedAgents.value.forEach(s => {
|
||||
@@ -580,6 +581,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
|
||||
})
|
||||
|
||||
@@ -875,7 +879,7 @@ defineExpose({
|
||||
<style scoped lang="less">
|
||||
.agent-list-container {
|
||||
padding: 24px 32px;
|
||||
margin: 0 16px;
|
||||
margin: 0 16px 0 4px;
|
||||
height: calc(100vh);
|
||||
box-sizing: border-box;
|
||||
flex: 1;
|
||||
@@ -888,7 +892,7 @@ defineExpose({
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
background: #fff;
|
||||
background: #fafbfc;
|
||||
border: 1px solid #e7ebf0;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
@@ -900,6 +904,7 @@ defineExpose({
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 12px;
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
||||
Reference in New Issue
Block a user