From 49130a6157abe04cf76ad357902fd8f032b036da Mon Sep 17 00:00:00 2001 From: xintaofei Date: Mon, 16 Mar 2026 22:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BC=9A=E8=AF=9D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E5=87=BA=E7=8E=B0=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/message-input.tsx | 384 +++++++++++++------------- 1 file changed, 189 insertions(+), 195 deletions(-) diff --git a/src/components/chat/message-input.tsx b/src/components/chat/message-input.tsx index a2104a5..2cdf30d 100644 --- a/src/components/chat/message-input.tsx +++ b/src/components/chat/message-input.tsx @@ -1107,15 +1107,6 @@ export function MessageInput({ const hasImageAttachments = imageAttachments.length > 0 const hasResourceAttachments = resourceAttachments.length > 0 - const topPaddingClass = - hasImageAttachments && hasResourceAttachments - ? "pt-[6.25rem]" - : hasImageAttachments - ? "pt-[4.5rem]" - : hasResourceAttachments - ? "pt-10" - : "pt-3" - const bottomPaddingClass = "pb-10" const showDragActive = isDragActive && !disabled const selectorItems = ( @@ -1144,6 +1135,88 @@ export function MessageInput({ ) + const actionButtons = isEditingQueueItem ? ( +
+ + +
+ ) : isPrompting && onCancel ? ( +
+ + +
+ ) : onForkSend ? ( +
+ + + + + + + + + {t("forkAndSend")} + + + +
+ ) : ( + + ) + return (
)} -