From 69fcd3f0c8f26d82c378b91f667ba671f5983acf Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 15 Mar 2023 10:27:01 -0700 Subject: [PATCH] Add padding to values in resources widget Closes #1110 --- src/components/widgets/resources/cpu.jsx | 8 ++++---- src/components/widgets/resources/disk.jsx | 8 ++++---- src/components/widgets/resources/memory.jsx | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/widgets/resources/cpu.jsx b/src/components/widgets/resources/cpu.jsx index 0382270c..7069e3c4 100644 --- a/src/components/widgets/resources/cpu.jsx +++ b/src/components/widgets/resources/cpu.jsx @@ -29,12 +29,12 @@ export default function Cpu({ expanded }) {
-
-
+
-
{t("resources.cpu")}
{expanded && (
-
-
+
-
{t("resources.load")}
)} @@ -51,7 +51,7 @@ export default function Cpu({ expanded }) {
-
+
{t("common.number", { value: data.cpu.usage, style: "unit", @@ -63,7 +63,7 @@ export default function Cpu({ expanded }) {
{expanded && (
-
+
{t("common.number", { value: data.cpu.load, maximumFractionDigits: 2, diff --git a/src/components/widgets/resources/disk.jsx b/src/components/widgets/resources/disk.jsx index bed7caef..fb770dbb 100644 --- a/src/components/widgets/resources/disk.jsx +++ b/src/components/widgets/resources/disk.jsx @@ -29,12 +29,12 @@ export default function Disk({ options, expanded }) {
-
-
+
-
{t("resources.free")}
{expanded && ( -
-
+
-
{t("resources.total")}
)} @@ -51,12 +51,12 @@ export default function Disk({ options, expanded }) {
-
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}
+
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}
{t("resources.free")}
{expanded && ( -
{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}
+
{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}
{t("resources.total")}
)} diff --git a/src/components/widgets/resources/memory.jsx b/src/components/widgets/resources/memory.jsx index 068177df..27351998 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -29,12 +29,12 @@ export default function Memory({ expanded }) {
-
-
+
-
{t("resources.free")}
{expanded && ( -
-
+
-
{t("resources.total")}
)} @@ -51,14 +51,14 @@ export default function Memory({ expanded }) {
-
+
{t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024, maximumFractionDigits: 1, binary: true })}
{t("resources.free")}
{expanded && ( -
+
{t("common.bytes", { value: data.memory.totalMemMb * 1024 * 1024, maximumFractionDigits: 1,