From 8e6c8c74242f48bd750620ba52c769b1818fcb6b Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Fri, 12 Jun 2026 11:38:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(chat):=20=E5=93=81=E7=89=8C=E5=8C=96?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=EF=BC=8C=E7=A7=BB=E9=99=A4=20sxwz=20?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 SVG 图标 stroke 从硬编码 #150033 改为 currentColor,移除聊天面板 sxwz 专属 translate-x 偏移,为代码编辑器添加组件级 CSS 类名。 --- .../app/workspace/chats/[thread_id]/page.tsx | 25 +++++++++++-------- .../src/components/workspace/code-editor.tsx | 2 +- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 49644fc5..f95e7e90 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -347,7 +347,6 @@ export default function ChatPage() { className={cn( "m-auto flex h-screen min-h-svh overflow-hidden rounded-t-[20px] transition-[width] duration-300 ease-in-out", artifactsOpen ? "w-full" : "w-[70%]", - brand === "sxwz" && artifactsOpen === false && "translate-x-[-172px]", )} >
@@ -443,9 +442,15 @@ export default function ChatPage() { disabled={isStreaming} onClick={() => setShowExitDialog(true)} > - - - + {brand === "sxwz" ? ( + + + + ) : ( + + + + )} {t.common.resetThread} @@ -454,7 +459,7 @@ export default function ChatPage() { @@ -573,13 +578,13 @@ export default function ChatPage() { "pointer-events-none fixed right-0 bottom-3 left-0 z-30 flex justify-center px-4", "transition-all duration-300 ease-in-out", fullscreen ? "hidden" : "", + brand === "sxwz" && artifactsOpen === false && "-translate-x-[30px]" )} >
{!(showWelcomeStyle && thread.isThreadLoading) ? ( diff --git a/frontend/src/components/workspace/code-editor.tsx b/frontend/src/components/workspace/code-editor.tsx index cdda7f86..6ebe3aeb 100644 --- a/frontend/src/components/workspace/code-editor.tsx +++ b/frontend/src/components/workspace/code-editor.tsx @@ -76,7 +76,7 @@ export function CodeEditor({ return (