From 136287d85ac35de982fb255ecfc230fe8d0089e8 Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Wed, 1 Jan 2025 12:44:57 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(node):=20Improve=20layout?= =?UTF-8?q?=20and=20spacing=20in=20NodeStatusCell=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/dashboard/server/node-status.tsx | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/apps/admin/app/dashboard/server/node-status.tsx b/apps/admin/app/dashboard/server/node-status.tsx index 379af22..2a4e54a 100644 --- a/apps/admin/app/dashboard/server/node-status.tsx +++ b/apps/admin/app/dashboard/server/node-status.tsx @@ -42,57 +42,57 @@ export function NodeStatusCell({ status }: { status: API.NodeStatus }) { -
- {badgeText} - - {t('onlineCount')}: {onlineCount} - -
-
- -
- <> -
-
-
- CPU - {formatPercentage(serverStatus?.cpu ?? 0)} -
- -
-
-
- {t('memory')} - {formatPercentage(serverStatus?.mem ?? 0)} -
- -
-
-
- {t('disk')} - {formatPercentage(serverStatus?.disk ?? 0)} -
- -
+
+
+ {badgeText} + + {t('onlineCount')}: {onlineCount} + +
+
+
+ CPU + {formatPercentage(serverStatus?.cpu ?? 0)}
-
+ +
+
+
+ {t('memory')} + {formatPercentage(serverStatus?.mem ?? 0)} +
+ +
+
+
+ {t('disk')} + {formatPercentage(serverStatus?.disk ?? 0)} +
+ +
+ {isOnline && ( +
{t('lastUpdated')}: {formatDate(serverStatus?.updated_at ?? 0)}
- {isOnline && onlineCount > 0 && ( -
-

{t('onlineUsers')}

- - {online_users.map((user, index) => ( -
- {user.ip} (UID: {user.uid}) -
- ))} -
-
- )} - + )}
- + + {isOnline && onlineCount > 0 && ( + +
+
+

{t('onlineUsers')}

+ + {online_users.map((user, index) => ( +
+ {user.ip} (UID: {user.uid}) +
+ ))} +
+
+
+
+ )} );