From fb9e03b31db57c371215e183eed439be13b2e96a Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 14:28:12 +0300 Subject: [PATCH] attempt to fix layout shift on resource widgets --- src/components/widgets/resources/disk.jsx | 2 +- src/components/widgets/resources/memory.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/resources/disk.jsx b/src/components/widgets/resources/disk.jsx index ca0a6a376..6ffc473d0 100644 --- a/src/components/widgets/resources/disk.jsx +++ b/src/components/widgets/resources/disk.jsx @@ -39,7 +39,7 @@ export default function Disk({ options }) { return (
-
+
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })} {t("resources.free")} diff --git a/src/components/widgets/resources/memory.jsx b/src/components/widgets/resources/memory.jsx index b5dbe1de7..e2990f7e1 100644 --- a/src/components/widgets/resources/memory.jsx +++ b/src/components/widgets/resources/memory.jsx @@ -39,7 +39,7 @@ export default function Memory() { return (
-
+
{t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024 })} {t("resources.free")}