fix(style): body scroll

This commit is contained in:
jialin
2024-10-22 18:37:45 +08:00
parent c442a33d5e
commit bc9129bcbe
6 changed files with 39 additions and 8 deletions
+10 -1
View File
@@ -454,7 +454,16 @@ const Resources: React.FC = () => {
</span>
<ProgressBar
key={index}
percent={_.round(item.memory?.utilization_rate, 0)}
percent={
item.memory?.used
? _.round(item.memory?.utilization_rate, 0)
: _.round(
(item.memory?.allocated /
item.memory?.total) *
100,
0
)
}
label={
<span className="flex-column">
<span>