From fbd32418452a106cb262dafa86ff95c556da857d 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: Tue, 13 Jan 2026 16:50:46 +0800 Subject: [PATCH] Improve version info UI and update model config Refined the system info version comparison layout for better responsiveness and readability, especially on smaller screens. Updated the OpenRouter model name in the release workflow and improved dark mode text color handling in sidebar menu items. --- .github/workflows/release.yml | 2 +- .../src/components/sidebar/menus.tsx | 2 +- .../src/components/system_info.tsx | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ead09fe..43174270 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: write-all env: OPENROUTER_API_URL: https://91vip.futureppo.top/v1/chat/completions - OPENROUTER_MODEL: "Antigravity/gemini-3-flash-preview" + OPENROUTER_MODEL: "copilot/ant/gemini-3-flash-preview" RELEASE_NAME: "NapCat" jobs: diff --git a/packages/napcat-webui-frontend/src/components/sidebar/menus.tsx b/packages/napcat-webui-frontend/src/components/sidebar/menus.tsx index be80113a..5f7b2192 100644 --- a/packages/napcat-webui-frontend/src/components/sidebar/menus.tsx +++ b/packages/napcat-webui-frontend/src/components/sidebar/menus.tsx @@ -54,7 +54,7 @@ const renderItems = (items: MenuItem[], children = false) => { isActive ? 'bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-400 shadow-none font-semibold translate-x-1' : 'hover:bg-default-100 hover:translate-x-1', - b64img && 'backdrop-blur-md text-white' + b64img && 'backdrop-blur-md text-white dark:text-white' )} color={isActive ? 'primary' : 'default'} endContent={ diff --git a/packages/napcat-webui-frontend/src/components/system_info.tsx b/packages/napcat-webui-frontend/src/components/system_info.tsx index 653479d2..5be0f274 100644 --- a/packages/napcat-webui-frontend/src/components/system_info.tsx +++ b/packages/napcat-webui-frontend/src/components/system_info.tsx @@ -81,25 +81,25 @@ const UpdateDialogContent: React.FC<{ return (
{/* 版本对比 */} -
-
+
+
当前版本 - + v{currentVersion}
-
+
- +
-
+
最新版本 - + v{latestVersion}