From 80c92f7fd4274bd6da6469eaa0cf26e2748497e3 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Tue, 25 Aug 2026 10:35:27 +0800 Subject: [PATCH] fix(frontend): restore login & auth-loading styles with Tailwind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 提交 6b77018 把 frontend/app/app.css 从 112 行砍到 91 行, 删除了 .login-* 与 .auth-loading 选择器,但 login.tsx / AuthContext.tsx 的类名没同步迁移,导致: - /login 页面无样式(背景渐变、卡片阴影、输入框焦点环全部失效) - AuthContext 初次加载时的旋转 spinner 无样式 两处都用 Tailwind 任意值 [..] 语法精确复刻原 CSS,精确到 原始色值(#1677ff、#eef5fb 等),不引入新的 CSS 文件, 不修改 app.css、路由配置或依赖。 Spinner 用 Tailwind 内置 animate-spin(1s)替代原 0.8s keyframes auth-spin,视觉差异肉眼不可见,如需精确复刻可在 app.css @theme 加 --animate-auth-spin。 Co-Authored-By: Claude Fable 5 --- frontend/app/context/AuthContext.tsx | 4 +-- frontend/app/routes/login.tsx | 46 +++++++++++++++++++++------- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/frontend/app/context/AuthContext.tsx b/frontend/app/context/AuthContext.tsx index 6b52f8b..e4f95e9 100644 --- a/frontend/app/context/AuthContext.tsx +++ b/frontend/app/context/AuthContext.tsx @@ -198,8 +198,8 @@ export function AuthProvider({ children }: { children: ReactNode }) { if (loading) { return ( -
- +
+ 正在验证登录状态…
); diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx index 82c4f34..494b1ab 100644 --- a/frontend/app/routes/login.tsx +++ b/frontend/app/routes/login.tsx @@ -35,14 +35,28 @@ export default function LoginRoute() { }; return ( -
-
- -

MODEL EXPERIMENT PLATFORM

-

模型实验开发平台

-

使用平台账号登录并选择你的 Workspace。

-
void submit(event)}> -