feat: 添加部分节点语义化class

This commit is contained in:
Forget
2024-12-21 21:14:01 +08:00
parent 612a63be97
commit 15f6460b09
8 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export default function ServerDetailChart({ server_id }: { server_id: string })
const gpuList = server.host.gpu || []
return (
<section className="grid md:grid-cols-2 lg:grid-cols-3 grid-cols-1 gap-3">
<section className="grid md:grid-cols-2 lg:grid-cols-3 grid-cols-1 gap-3 server-charts">
<CpuChart now={nezhaWsData.now} data={server} />
{gpuStats.length >= 1 && gpuList.length === gpuStats.length ? (
gpuList.map((gpu, index) => <GpuChart now={nezhaWsData.now} gpuStat={gpuStats[index]} gpuName={gpu} key={index} />)