From 87d811dad603ebfaa5a9ca313701bcde1b02cc5e Mon Sep 17 00:00:00 2001 From: yiling Date: Sat, 11 Jul 2026 10:59:56 +0800 Subject: [PATCH] style(chatbot): move send button inside input border area to match comment input design --- packages/webui/components/chatbot-sidebar.tsx | 82 +++++++++++-------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/packages/webui/components/chatbot-sidebar.tsx b/packages/webui/components/chatbot-sidebar.tsx index 73ddabeb..f902c6d3 100644 --- a/packages/webui/components/chatbot-sidebar.tsx +++ b/packages/webui/components/chatbot-sidebar.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from 'react' import { useDroppable } from '@dnd-kit/react' import { useChatbotStore } from '@/ui/stores/chatbot' -import { Bot, Send, History, Plus, Trash2, Loader2, ArrowLeft } from 'lucide-react' +import { Bot, ArrowUp, History, Plus, Trash2, Loader2, ArrowLeft } from 'lucide-react' import { cn } from '@/ui/lib/utils' import { m } from '@/ui/paraglide/messages.js' import { ScrollArea } from '@/ui/components/ui/scroll-area' @@ -269,51 +269,61 @@ export function ChatbotSidebar({ projectId, contextAssetId }: ChatbotSidebarProp )} - {/* Context assets above input area */} -
- {chatAssets.length > 0 && ( -
- {chatAssets.map((asset) => ( -
-
- {asset.name} - - {asset.type} - -
- -
- ))} -
- )} +
+ {asset.name} + + {asset.type} + +
+ +
+ ))} + + )} - {/* Input area */} -
+ {/* Textarea inside the border */}