From 427e9e3eb7684a58a4c2cb597283c5a5319d9dd3 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 15 Sep 2024 23:48:50 +0800 Subject: [PATCH] refactor: improve some style in server status page --- .../components/monitor/MonitorListItem.tsx | 22 +++++++++---------- .../monitor/StatusPage/EditForm.tsx | 3 ++- .../components/monitor/StatusPage/index.tsx | 6 ++--- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/client/components/monitor/MonitorListItem.tsx b/src/client/components/monitor/MonitorListItem.tsx index 79502a1..99e2829 100644 --- a/src/client/components/monitor/MonitorListItem.tsx +++ b/src/client/components/monitor/MonitorListItem.tsx @@ -86,8 +86,8 @@ export const MonitorListItem: React.FC<{ -
-
{monitorName}
+
+
{monitorName}
{/*
{monitor.tags.map((tag) => ( */}
-
+ {showCurrentResponse && latestResponse && ( + +
+ {latestResponse} +
+
+ )} + +
- - {showCurrentResponse && latestResponse && ( - -
- {latestResponse} -
-
- )}
); }); diff --git a/src/client/components/monitor/StatusPage/EditForm.tsx b/src/client/components/monitor/StatusPage/EditForm.tsx index 4db298f..265c233 100644 --- a/src/client/components/monitor/StatusPage/EditForm.tsx +++ b/src/client/components/monitor/StatusPage/EditForm.tsx @@ -227,6 +227,7 @@ export const MonitorStatusPageEditForm: React.FC diff --git a/src/client/components/monitor/StatusPage/index.tsx b/src/client/components/monitor/StatusPage/index.tsx index 0e76902..ac7d189 100644 --- a/src/client/components/monitor/StatusPage/index.tsx +++ b/src/client/components/monitor/StatusPage/index.tsx @@ -106,11 +106,11 @@ export const MonitorStatusPage: React.FC = React.memo(
-
{info?.title}
+
{info?.title}
@@ -132,7 +132,7 @@ export const MonitorStatusPage: React.FC = React.memo(
-
{t('Services')}
+
{t('Services')}
{info && (