feat(ui): unify card styles and improve layout consistency across agent, knowledge base, and organization components
- Standardized card dimensions and padding across AgentList, KnowledgeBaseList, and OrganizationList for a cohesive appearance. - Adjusted font sizes and line heights in card descriptions to enhance readability and maintain uniformity. - Enhanced card content layout with flex properties to improve visual structure and spacing. This update improves the user interface by ensuring consistent styling and layout across multiple components, enhancing the overall user experience.
This commit is contained in:
@@ -1076,6 +1076,7 @@ defineExpose({
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
/* 与知识库列表卡片统一尺寸:160px 高、18px 20px 内边距、12px 圆角 */
|
||||
.agent-card {
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 12px;
|
||||
@@ -1090,6 +1091,7 @@ defineExpose({
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 160px;
|
||||
min-height: 160px;
|
||||
|
||||
&:hover {
|
||||
border-color: #07c05f;
|
||||
@@ -1157,12 +1159,12 @@ defineExpose({
|
||||
}
|
||||
|
||||
.card-description {
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.card-bottom {
|
||||
padding-top: 10px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.more-wrap {
|
||||
@@ -1328,12 +1330,18 @@ defineExpose({
|
||||
}
|
||||
}
|
||||
|
||||
/* 与知识库卡片内容区一致 */
|
||||
.card-content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
margin-bottom: 8px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
/* 三个列表卡片统一:描述字体 */
|
||||
.card-description {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -1341,7 +1349,7 @@ defineExpose({
|
||||
line-clamp: 2;
|
||||
overflow: hidden;
|
||||
color: #666;
|
||||
font-family: "PingFang SC";
|
||||
font-family: "PingFang SC", -apple-system, sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 18px;
|
||||
|
||||
Reference in New Issue
Block a user