From e8855a59b0745ba48c80c35483c8d192f2eb37dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 18 Jan 2026 11:25:06 +0800 Subject: [PATCH] Improve alignment in system info and status components Adjusted flex alignment and added 'items-baseline' and 'self-center' classes to enhance vertical alignment of icons and content in SystemInfoItem and SystemStatusItem components for better UI consistency. --- .../src/components/system_info.tsx | 36 ++++++++++++------- .../src/components/system_status_display.tsx | 2 +- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/packages/napcat-webui-frontend/src/components/system_info.tsx b/packages/napcat-webui-frontend/src/components/system_info.tsx index 516aef51..9aa69423 100644 --- a/packages/napcat-webui-frontend/src/components/system_info.tsx +++ b/packages/napcat-webui-frontend/src/components/system_info.tsx @@ -45,7 +45,7 @@ const SystemInfoItem: React.FC = ({ return (
= ({ )} onClick={onClick} > -
{icon}
+
{icon}
{title}
{value}
-
{endContent}
+
{endContent}
); }; @@ -84,9 +84,11 @@ const UpdateDialogContent: React.FC<{
当前版本 - - v{currentVersion} - + + + v{currentVersion} + +
@@ -99,9 +101,11 @@ const UpdateDialogContent: React.FC<{
最新版本 - - v{latestVersion} - + + + v{latestVersion} + +
@@ -136,13 +140,21 @@ const UpdateDialogContent: React.FC<{

-

+

- 请手动重启 NapCat,更新才会生效 + 重启 NapCat 生效

+
+ +
)} @@ -400,7 +412,7 @@ const VersionSelectDialogContent: React.FC = ({ 稍后重启