From 0a33d99c2877d73d297d369b7f5395e2d5f73f90 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Mar 2026 17:09:48 +0800 Subject: [PATCH] style: compact agent project pill --- app/canvas/[id]/page.tsx | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/app/canvas/[id]/page.tsx b/app/canvas/[id]/page.tsx index 83cbec17e..b8834441f 100644 --- a/app/canvas/[id]/page.tsx +++ b/app/canvas/[id]/page.tsx @@ -1646,15 +1646,6 @@ export default function CanvasEditorPage({ params }: PageProps) { ); const resolvedAgentProjectTitle = String(agentProjectTitle || "").trim() || "未命名生图项目"; - const agentProjectStatusLabel = isAgentProjectLoading - ? hasActiveAgentProject - ? "项目加载中..." - : "正在创建新项目..." - : isAgentProjectSaving - ? "自动保存中..." - : hasActiveAgentProject - ? "已自动保存" - : "准备创建项目..."; if (isLoading) { return ( @@ -1703,21 +1694,15 @@ export default function CanvasEditorPage({ params }: PageProps) { const agentProjectNavSlot = isAgentMode ? (
-
-
- 当前项目 -
-
+
+ {isAgentProjectLoading || isAgentProjectSaving ? ( + + ) : ( + + )} + {resolvedAgentProjectTitle} -
-
- {isAgentProjectLoading || isAgentProjectSaving ? ( - - ) : ( - - )} - {agentProjectStatusLabel} -
+