From deceafad4fb766e81921348b16846f1efe4715d1 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 4 Jan 2024 00:34:50 +0800 Subject: [PATCH] perf: improve UI --- src/client/components/UpDownCounter.tsx | 4 ++-- src/client/components/website/WebsiteList.tsx | 6 +++--- src/client/pages/Servers.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/client/components/UpDownCounter.tsx b/src/client/components/UpDownCounter.tsx index b76277d..e577e05 100644 --- a/src/client/components/UpDownCounter.tsx +++ b/src/client/components/UpDownCounter.tsx @@ -10,11 +10,11 @@ export const UpDownCounter: React.FC = React.memo((props) => {
- {props.up} + {props.up}
- {props.down} + {props.down}
); diff --git a/src/client/components/website/WebsiteList.tsx b/src/client/components/website/WebsiteList.tsx index 9bb62c0..185ccd7 100644 --- a/src/client/components/website/WebsiteList.tsx +++ b/src/client/components/website/WebsiteList.tsx @@ -62,7 +62,7 @@ export const WebsiteList: React.FC = React.memo(() => { { >
diff --git a/src/client/pages/Servers.tsx b/src/client/pages/Servers.tsx index 3f8a618..698c17b 100644 --- a/src/client/pages/Servers.tsx +++ b/src/client/pages/Servers.tsx @@ -239,7 +239,7 @@ export const ServerList: React.FC<{ width: 120, render: (_, record) => { return ( -
+
{filesize(record.payload.memory_used * 1000)} /
{filesize(record.payload.memory_total * 1000)}
@@ -252,7 +252,7 @@ export const ServerList: React.FC<{ width: 120, render: (_, record) => { return ( -
+
{filesize(record.payload.hdd_used * 1000 * 1000)} /
{filesize(record.payload.hdd_total * 1000 * 1000)}