From 2dc6f76da967e4cb34eb90f01e038f60006a59dd Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 14 Oct 2025 17:38:26 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index 10aea3a..9bd0137 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -390,10 +390,10 @@ export default function Hardware() { const groupedTemps = groupAndSortTemperatures(hardwareData.temperatures) return ( -
+
{/* CPU Sensors */} {groupedTemps.CPU.length > 0 && ( -
+

CPU

@@ -434,7 +434,7 @@ export default function Hardware() { {/* GPU Sensors */} {groupedTemps.GPU.length > 0 && ( -
+
1 ? "md:col-span-2" : ""}>

GPU

@@ -442,7 +442,7 @@ export default function Hardware() { {groupedTemps.GPU.length}
-
+
1 ? "md:grid-cols-2" : ""}`}> {groupedTemps.GPU.map((temp, index) => { const percentage = temp.critical > 0 ? (temp.current / temp.critical) * 100 : (temp.current / 100) * 100 @@ -475,7 +475,7 @@ export default function Hardware() { {/* NVME Sensors */} {groupedTemps.NVME.length > 0 && ( -
+
1 ? "md:col-span-2" : ""}>

NVME

@@ -483,7 +483,7 @@ export default function Hardware() { {groupedTemps.NVME.length}
-
+
1 ? "md:grid-cols-2" : ""}`}> {groupedTemps.NVME.map((temp, index) => { const percentage = temp.critical > 0 ? (temp.current / temp.critical) * 100 : (temp.current / 100) * 100 @@ -516,7 +516,7 @@ export default function Hardware() { {/* PCI Sensors */} {groupedTemps.PCI.length > 0 && ( -
+
1 ? "md:col-span-2" : ""}>

PCI

@@ -524,7 +524,7 @@ export default function Hardware() { {groupedTemps.PCI.length}
-
+
1 ? "md:grid-cols-2" : ""}`}> {groupedTemps.PCI.map((temp, index) => { const percentage = temp.critical > 0 ? (temp.current / temp.critical) * 100 : (temp.current / 100) * 100 @@ -557,7 +557,7 @@ export default function Hardware() { {/* OTHER Sensors */} {groupedTemps.OTHER.length > 0 && ( -
+
1 ? "md:col-span-2" : ""}>

OTHER

@@ -565,7 +565,7 @@ export default function Hardware() { {groupedTemps.OTHER.length}
-
+
1 ? "md:grid-cols-2" : ""}`}> {groupedTemps.OTHER.map((temp, index) => { const percentage = temp.critical > 0 ? (temp.current / temp.critical) * 100 : (temp.current / 100) * 100