diff --git a/src/app/chat/components/__tests__/tailwind-components.test.tsx b/src/app/chat/components/__tests__/tailwind-components.test.tsx index 88a250ba..66712348 100644 --- a/src/app/chat/components/__tests__/tailwind-components.test.tsx +++ b/src/app/chat/components/__tests__/tailwind-components.test.tsx @@ -96,7 +96,8 @@ describe("chat Tailwind components", () => { ); expect(activeHtml).toContain('aria-label="Send message"'); - expect(activeHtml).toContain('data-analytics-key="chat.send_message"'); + expect(activeHtml).toContain('data-analytics-ignore="true"'); + expect(activeHtml).not.toContain("data-analytics-key"); expect(activeHtml).toContain("size-(--chat-send-button-size,40px)"); expect(activeHtml).toContain( "bg-[linear-gradient(to_right,var(--color-button-gradient-start,#ff67e0),var(--color-button-gradient-end,#ff52a2))]", diff --git a/src/app/chat/components/chat-send-button.tsx b/src/app/chat/components/chat-send-button.tsx index a00d81a5..f0b7f990 100644 --- a/src/app/chat/components/chat-send-button.tsx +++ b/src/app/chat/components/chat-send-button.tsx @@ -1,15 +1,4 @@ "use client"; -/** - * ChatSendButton 发送按钮 - * - * - * - * 视觉: - * - 默认:粉色背景 + 渐变边缘 - * - 聚焦 / 激活:完整 primaryGradient(accent → 透明) - * - * 图标:固定显示 ,按钮只负责发送消息。 - */ import { ArrowUp } from "lucide-react"; export interface ChatSendButtonProps { @@ -29,8 +18,7 @@ export function ChatSendButton({ return (