From dcc997e9d3b8046bcfda2141690fc6e082abc836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Tue, 19 Aug 2025 21:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96chatbox=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ai-suggestion-bar.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/ai-suggestion-bar.tsx b/components/ai-suggestion-bar.tsx index 05418d5..24b5bcb 100644 --- a/components/ai-suggestion-bar.tsx +++ b/components/ai-suggestion-bar.tsx @@ -101,7 +101,7 @@ export function AISuggestionBar({ height: { type: "spring", stiffness: 300, damping: 30 }, opacity: { duration: 0.2 } }} - className="mb-4 pt-4 px-4 overflow-hidden bg-black/40 rounded-xl backdrop-blur-sm" + className="mb-2 pt-4 px-4 overflow-hidden bg-black/40 rounded-xl backdrop-blur-sm" > setIsFocused(false)} + onBlur={() => { + setIsFocused(false); + setShowSuggestions(!showSuggestions) + }} placeholder={isCollapsed ? "点击展开..." : placeholder} className="w-full resize-none bg-transparent border-none px-4 py-3 text-white placeholder:text-white/40 focus:outline-none min-h-[52px] max-h-[150px] pr-[100px]" @@ -189,7 +192,7 @@ export function AISuggestionBar({ /> {/* 操作按钮 */} -
+