From ffe365201a5bcefe430a2cf3fb85ba368625ba33 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 9 Jun 2026 10:28:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E7=BB=9F=E4=B8=80=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E2=80=94=E2=80=94=E9=A2=9C=E8=89=B2=E3=80=81?= =?UTF-8?q?=E5=AD=97=E5=8F=B7=E3=80=81=E9=97=B4=E8=B7=9D=E3=80=81=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UI 修正清单: ┌────────────────────────────────────────────────────────────┐ │ 问题 │ 修复 │ ├──────────────────────────┼────────────────────────────────┤ │ 登录页 blue → 不一致 │ 统一改为 indigo 系 │ │ text-[10px] 标签难读 │ → text-xs (设置页所有标签) │ │ text-[9px] 徽章太小 │ → text-xs (角色/租户/权限) │ │ text-[14px] 输入框不统一 │ → text-sm (编辑弹窗) │ │ py-3 vs py-3.5 不一致 │ → py-3 统一 (所有输入框) │ │ 表格头 py-4 过大 │ → py-3 │ │ 编辑弹窗 max-w-md 太窄 │ → max-w-lg (更宽松) │ │ 操作列 opacity-0 隐藏 │ → opacity-60 始终可见 │ │ 原生 checkbox 不匹配 │ → 自定义圆角 checkbox + Check │ │ 登录页 rounded-lg │ → rounded-xl 统一 │ │ 登录按钮缺阴影 │ → 加 shadow-lg │ └────────────────────────────────────────────────────────────┘ Co-Authored-By: Claude Opus 4.8 --- web/components/LoginPage.tsx | 8 ++-- .../views/PermissionSettingsView.tsx | 16 ++++++-- web/components/views/SettingsView.tsx | 38 +++++++++---------- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/web/components/LoginPage.tsx b/web/components/LoginPage.tsx index 1cb2d4f..9341be0 100644 --- a/web/components/LoginPage.tsx +++ b/web/components/LoginPage.tsx @@ -35,7 +35,7 @@ const LoginPage: React.FC = ({ onLoginSuccess }) => {
-
+
@@ -56,7 +56,7 @@ const LoginPage: React.FC = ({ onLoginSuccess }) => { setUsername(e.target.value); setError(''); }} - className="w-full px-4 py-3 rounded-lg border border-slate-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition-all" + className="w-full px-4 py-3 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 outline-none transition-all" placeholder={t('usernamePlaceholder') || 'Username'} />
@@ -68,7 +68,7 @@ const LoginPage: React.FC = ({ onLoginSuccess }) => { setPassword(e.target.value); setError(''); }} - className="w-full px-4 py-3 rounded-lg border border-slate-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition-all" + className="w-full px-4 py-3 rounded-xl border border-slate-300 focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 outline-none transition-all" placeholder={t('passwordPlaceholder') || 'Password'} /> {error &&

{error}

} @@ -76,7 +76,7 @@ const LoginPage: React.FC = ({ onLoginSuccess }) => {