From d8165bac4e46cf9a6ffadef1447d7ebd8dfd431a Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sun, 12 Jul 2026 13:18:02 +0800 Subject: [PATCH] feat(views): unify reply and comment send buttons to the circular chat style (#5288) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SubmitButton is now always circular — the shape prop is removed since every composer uses the same silhouette. ReplyInput drops its inline icon-xs Button for the shared SubmitButton, gaining the same size, disabled state, and send tooltip as the comment composer and chat. MUL-4433 Co-authored-by: Lambda Co-authored-by: multica-agent --- .../ui/components/common/submit-button.tsx | 13 ++---------- packages/views/chat/components/chat-input.tsx | 1 - .../views/issues/components/reply-input.tsx | 21 +++++++------------ 3 files changed, 9 insertions(+), 26 deletions(-) diff --git a/packages/ui/components/common/submit-button.tsx b/packages/ui/components/common/submit-button.tsx index 1ea02339b8..69d604ee13 100644 --- a/packages/ui/components/common/submit-button.tsx +++ b/packages/ui/components/common/submit-button.tsx @@ -3,7 +3,6 @@ import type { ReactNode } from "react"; import { ArrowUp, Loader2, Square } from "lucide-react"; import { Button } from "@multica/ui/components/ui/button"; -import { cn } from "@multica/ui/lib/utils"; import { Tooltip, TooltipContent, @@ -16,12 +15,6 @@ interface SubmitButtonProps { loading?: boolean; running?: boolean; onStop?: () => void; - /** - * Button silhouette. `"rounded"` (default) keeps the rounded-square used by - * issue comment composers; `"circle"` makes it a fully-round pill — the - * Chat V2 look. Opt-in so shared callers keep their existing shape. - */ - shape?: "rounded" | "circle"; /** * Tooltip shown over the send button when idle. Pass a string or a node * (e.g. `Send · ⌘↵`). Omit to render no tooltip. @@ -41,12 +34,10 @@ function SubmitButton({ onStop, tooltip, stopTooltip, - shape = "rounded", }: SubmitButtonProps) { - const shapeClass = shape === "circle" ? "rounded-full" : undefined; if (running) { const stopButton = ( - ); @@ -62,7 +53,7 @@ function SubmitButton({ const submitButton = ( + disabled={isEmpty} + loading={submitting} + tooltip={`${t(($) => $.comment.send_tooltip)} · ${formatShortcut(modKey, enterKey)}`} + /> {isDragOver && }