From 310e7d4338097fd8d1808f5b9295dd9a8b87e905 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Wed, 4 Dec 2024 18:06:28 +0800 Subject: [PATCH] style: network display --- README.md | 2 +- .../ClientComponents/ServerOverviewClient.tsx | 28 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 00e641f..d7364e8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ > [!CAUTION] > 此为 V0 兼容版本,与 V1 内置版本功能上可能有所不同 -> +> > V0 | V1 版本 issue 请在当前仓库发起 > [!TIP] diff --git a/app/(main)/ClientComponents/ServerOverviewClient.tsx b/app/(main)/ClientComponents/ServerOverviewClient.tsx index cacfa4b..7df36ae 100644 --- a/app/(main)/ClientComponents/ServerOverviewClient.tsx +++ b/app/(main)/ClientComponents/ServerOverviewClient.tsx @@ -175,29 +175,29 @@ export default function ServerOverviewClient() { }, )} > - +

{t("network")}

-
-

- ↑{formatBytes(data?.total_out_bandwidth || 0)} -

-

- ↓{formatBytes(data?.total_in_bandwidth || 0)} -

-
{data?.result ? ( <> -
-

- +

+

+ ↑{formatBytes(data?.total_out_bandwidth)} +

+

+ ↓{formatBytes(data?.total_in_bandwidth)} +

+
+
+

+ {formatBytes(data?.total_out_speed)}/s

-

+

{formatBytes( data?.total_in_speed, @@ -206,7 +206,7 @@ export default function ServerOverviewClient() {

) : ( -
+
)}