From 1b73b0b8614343033330c0de08af999894382db2 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 6 Oct 2025 23:16:31 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 129 +++++++++++++++++-------------- 1 file changed, 72 insertions(+), 57 deletions(-) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index c524b14..206dc50 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -375,67 +375,82 @@ export default function Hardware() { {selectedGPU?.name} - Detailed GPU Information + PCI Device Information {selectedGPU && (
- {/* Basic Info */} -
-

Basic Information

-
-
- Vendor - {selectedGPU.vendor} -
-
- Type - {selectedGPU.type} -
-
- PCI Slot - {selectedGPU.slot} -
- {selectedGPU.pci_class && ( -
- Class - {selectedGPU.pci_class} -
- )} - {selectedGPU.pci_driver && ( -
- Driver - {selectedGPU.pci_driver} -
- )} - {selectedGPU.pci_kernel_module && ( -
- Kernel Module - {selectedGPU.pci_kernel_module} -
- )} - {selectedGPU.driver_version && ( -
- Driver Version - {selectedGPU.driver_version} -
- )} - {selectedGPU.pcie_gen && ( -
- PCIe Generation - Gen {selectedGPU.pcie_gen} -
- )} - {selectedGPU.pcie_width && ( -
- PCIe Width - {selectedGPU.pcie_width} -
- )} + {/* Basic PCI Device Information - Same format as PCI Device modal */} +
+
+ Device Type + Graphics Card
+ +
+ PCI Slot + {selectedGPU.slot} +
+ +
+ Device Name + {selectedGPU.name} +
+ +
+ Vendor + {selectedGPU.vendor} +
+ + {selectedGPU.pci_class && ( +
+ Class + {selectedGPU.pci_class} +
+ )} + + {selectedGPU.pci_driver && ( +
+ Driver + {selectedGPU.pci_driver} +
+ )} + + {selectedGPU.pci_kernel_module && ( +
+ Kernel Module + {selectedGPU.pci_kernel_module} +
+ )} + +
+ Type + {selectedGPU.type} +
+ + {selectedGPU.driver_version && ( +
+ Driver Version + {selectedGPU.driver_version} +
+ )} + + {selectedGPU.pcie_gen && ( +
+ PCIe Generation + Gen {selectedGPU.pcie_gen} +
+ )} + + {selectedGPU.pcie_width && ( +
+ PCIe Width + {selectedGPU.pcie_width} +
+ )}
- {/* Memory Info */} + {/* Memory Info - Only show if available */} {selectedGPU.memory_total && (

Memory

@@ -465,7 +480,7 @@ export default function Hardware() {
)} - {/* Performance */} + {/* Performance - Only show if realtime data available */} {hasRealtimeData(selectedGPU) && (

Performance

@@ -512,7 +527,7 @@ export default function Hardware() {
)} - {/* Clock Speeds */} + {/* Clock Speeds - Only show if available */} {(selectedGPU.clock_graphics || selectedGPU.clock_memory) && (

Clock Speeds

@@ -533,7 +548,7 @@ export default function Hardware() {
)} - {/* Running Processes */} + {/* Running Processes - Only show if available */} {selectedGPU.processes && selectedGPU.processes.length > 0 && (

Running Processes