前端调整

This commit is contained in:
zengqiao
2022-08-25 20:32:49 +08:00
parent 5262ae8907
commit 18832dc448
31 changed files with 369 additions and 405 deletions

View File

@@ -107,6 +107,7 @@ const LeftSider = () => {
strokeWidth={4}
strokeColor={getHealthProcessColor(clusterMetrics?.HealthScore, clusterMetrics?.Alive)}
percent={clusterMetrics?.HealthScore ?? '-'}
className={+clusterMetrics.Alive <= 0 ? 'red-circle' : +clusterMetrics?.HealthScore < 90 ? 'blue-circle' : 'green-circle'}
format={() => (
<div className={`healthy-percent ${getHealthClassName(clusterMetrics?.HealthScore, clusterMetrics?.Alive)}`}>
{getHealthText(clusterMetrics?.HealthScore, clusterMetrics?.Alive)}

View File

@@ -156,7 +156,20 @@
.state-card {
display: flex;
width: 100%;
.green-circle {
.dcloud-progress-inner {
background: #f5fdfc;
overflow: hidden;
border-radius: 50%;
}
}
.red-circle {
.dcloud-progress-inner {
background: #fffafa;
overflow: hidden;
border-radius: 50%;
}
}
.healthy-percent {
font-family: DIDIFD-Regular;
font-size: 38px;