feat(stats): 为统计页面添加域名评论分布饼图
- 在 CommentItem 类型中新增 isAdmin 字段以支持后续功能 - 重构域名统计布局,采用表格与饼图并排的响应式设计 - 实现饼图展示各域名评论数量分布,并添加响应式调整与清理逻辑
This commit is contained in:
@@ -88,10 +88,16 @@
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
.domain-stats-layout {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.domain-table-wrapper {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.domain-table {
|
||||
@@ -125,6 +131,19 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.domain-pie-wrapper {
|
||||
width: 40%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.domain-pie-chart {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
height: 260px;
|
||||
}
|
||||
|
||||
.chart-wrapper {
|
||||
margin-top: 4px;
|
||||
}
|
||||
@@ -138,4 +157,12 @@
|
||||
.stats-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.domain-stats-layout {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.domain-pie-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user