diff --git a/web-app/src/routes/settings/hardware.tsx b/web-app/src/routes/settings/hardware.tsx index 287be617c..3b35ddc65 100644 --- a/web-app/src/routes/settings/hardware.tsx +++ b/web-app/src/routes/settings/hardware.tsx @@ -282,13 +282,17 @@ function Hardware() { title="Usage" actions={
- - - {hardwareData.cpu?.usage?.toFixed(2)}% - + {hardwareData.cpu?.usage > 0 && ( + <> + + + {hardwareData.cpu?.usage?.toFixed(2)}% + + + )}
} /> @@ -316,49 +320,55 @@ function Hardware() { title="Usage" actions={
- - - {( - ((hardwareData.ram?.total - - hardwareData.ram?.available) / - hardwareData.ram?.total) * - 100 - ).toFixed(2)} - % - + {hardwareData.ram?.total > 0 && ( + <> + + + {( + ((hardwareData.ram?.total - + hardwareData.ram?.available) / + hardwareData.ram?.total) * + 100 + ).toFixed(2)} + % + + + )}
} /> {/* Vulkan Settings */} - - - { - setVulkanEnabled(checked) - setTimeout(() => { - window.location.reload() - }, 500) // Reload after 500ms to apply changes - }} - /> - - } - /> - + {hardwareData.gpus.length > 0 && ( + + + { + setVulkanEnabled(checked) + setTimeout(() => { + window.location.reload() + }, 500) // Reload after 500ms to apply changes + }} + /> + + } + /> + + )} {/* GPU Information */}