From c45bc4d5219d280f36bd8e07f881b78e3a3d0564 Mon Sep 17 00:00:00 2001 From: mt Date: Wed, 10 Jun 2026 17:52:02 +0800 Subject: [PATCH] =?UTF-8?q?style(input):=20=E8=B0=83=E6=95=B4=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=8C=89=E9=92=AE=E4=B8=BA=E5=9C=86=E5=BD=A2=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=A0=B7=E5=BC=8F=E5=B9=B6=E6=9B=B4=E6=96=B0=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - prompt-input.tsx: 发送按钮改为 36x36 圆形,使用 SVG 箭头/方块图标替代文字 - input-box.tsx: 占位区域尺寸同步调整为 36x36 - globals.css: 新增 brand-default/brand-sxwz 品牌 CSS class,新增 ws-interactive-hover token,主题色 #8e47f0 → #150033 --- .../components/ai-elements/prompt-input.tsx | 22 ++++++++++++------- .../src/components/workspace/input-box.tsx | 4 ++-- frontend/src/styles/globals.css | 12 ++++++++-- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/ai-elements/prompt-input.tsx b/frontend/src/components/ai-elements/prompt-input.tsx index 8b712dfe..6f73a226 100644 --- a/frontend/src/components/ai-elements/prompt-input.tsx +++ b/frontend/src/components/ai-elements/prompt-input.tsx @@ -1157,7 +1157,11 @@ export const PromptInputSubmit = ({ ? !!disabled : disabled || !hasContent || isSubmitted; - let Icon = ; + // let Icon = ; + let Icon = + +; + let text: string = t.inputBox.submit; @@ -1165,11 +1169,13 @@ export const PromptInputSubmit = ({ Icon = ; text = t.inputBox.submitting; } else if (status === "streaming") { - Icon = ; + Icon = + +; text = t.inputBox.stop; } else if (status === "error") { // 没有报错状态,先用error状态代替 - Icon = ; + // Icon = ; // MARK: 这里后端没有返回错误信息,先写死一个文本 text = t.inputBox.submit; } @@ -1180,10 +1186,10 @@ export const PromptInputSubmit = ({ aria-label="Submit" // 被button{bgc:#fff}覆盖了,只能加"!" className={cn( - "h-[40px] w-[140px] rounded-[10px] border-0 font-bold transition-all", + "h-[36px] w-[36px] rounded-[50%] border-0 font-bold transition-all ", isDisabled - ? "cursor-not-allowed !bg-gray-200 text-gray-400" - : "!bg-[#F0E8FB] text-[#8E47F0] hover:!bg-[#8E47F0] hover:text-[#FFFFFF]", + ? "cursor-not-allowed !bg-[#15003399] text-gray-400" + : "!bg-[#150033] text-[#8E47F0] hover:text-[#FFFFFF]", className, )} size={size} @@ -1192,8 +1198,8 @@ export const PromptInputSubmit = ({ disabled={isDisabled} {...props} > - {/* {children ?? Icon} */} - {text} + {children ?? Icon} + {/* {text} */} ); diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index dad7f713..c64b3deb 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -151,7 +151,7 @@ function WorkspaceToolButton({ return ( */} {/* 占位符 */} -
+