mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: mem chart overflow
This commit is contained in:
parent
e84c9a4a11
commit
a3297ea0b2
@ -411,7 +411,7 @@ function MemChart({ now, data }: { now: number; data: NezhaServer }) {
|
|||||||
value={mem}
|
value={mem}
|
||||||
primaryColor="hsl(var(--chart-8))"
|
primaryColor="hsl(var(--chart-8))"
|
||||||
/>
|
/>
|
||||||
<p className="text-xs font-medium">{mem.toFixed(2)}%</p>
|
<p className="text-xs font-medium">{mem.toFixed(0)}%</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
@ -424,7 +424,7 @@ function MemChart({ now, data }: { now: number; data: NezhaServer }) {
|
|||||||
value={swap}
|
value={swap}
|
||||||
primaryColor="hsl(var(--chart-10))"
|
primaryColor="hsl(var(--chart-10))"
|
||||||
/>
|
/>
|
||||||
<p className="text-xs font-medium">{swap.toFixed(2)}%</p>
|
<p className="text-xs font-medium">{swap.toFixed(0)}%</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user