feat(dashboard): 增加首页工作台并调整聊天入口

This commit is contained in:
2026-06-08 22:25:16 +08:00
parent ef0a9ee13e
commit ccfa43645e
11 changed files with 632 additions and 25 deletions

View File

@@ -1478,6 +1478,116 @@ input:focus {
background: #eaf2ff;
}
.dashboard-page {
display: grid;
align-content: start;
gap: 12px;
height: calc(100vh - 60px);
overflow-y: auto;
padding: 16px 24px 20px;
background: var(--bg);
}
.dashboard-hero,
.metric-grid,
.dashboard-split,
.dashboard-panel {
width: min(1440px, 100%);
margin: 0 auto;
}
.dashboard-hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 0;
}
.dashboard-hero h1 {
margin: 2px 0;
font-size: 22px;
}
.dashboard-hero p {
margin: 0;
color: var(--muted);
font-size: 13px;
}
.dashboard-primary-action {
background: #ffffff;
}
.metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.metric-card {
display: grid;
gap: 8px;
min-height: 104px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: #ffffff;
}
.metric-card span,
.metric-card em {
color: var(--muted);
font-size: 12px;
font-style: normal;
font-weight: 700;
}
.metric-card strong {
color: var(--text);
font-size: 30px;
line-height: 1;
}
.dashboard-split {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.dashboard-stat-list {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin: 0;
}
.dashboard-stat-list div {
display: grid;
gap: 6px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #f8fafc;
}
.dashboard-stat-list dt {
color: var(--muted);
font-size: 12px;
font-weight: 700;
}
.dashboard-stat-list dd {
margin: 0;
color: var(--text);
font-size: 22px;
font-weight: 800;
}
.recent-activity-table td {
height: 44px;
}
.table-empty,
.attachment-manager-empty {
color: var(--muted);
@@ -2293,6 +2403,23 @@ input:focus {
grid-template-columns: 1fr;
gap: 4px;
}
.dashboard-page {
height: auto;
min-height: calc(100vh - 60px);
padding: 12px;
}
.dashboard-hero {
align-items: stretch;
flex-direction: column;
}
.metric-grid,
.dashboard-split,
.dashboard-stat-list {
grid-template-columns: 1fr;
}
}
@keyframes pulse-caret {