@@ -337,7 +337,7 @@ function SearchChat({
337337 < div
338338 data-tauri-drag-region = { isTauri }
339339 className = { clsx (
340- "m-auto overflow-hidden relative bg-no-repeat bg-cover bg-center bg-white dark:bg-black" ,
340+ "m-auto overflow-hidden relative bg-no-repeat bg-cover bg-center bg-white dark:bg-black flex flex-col " ,
341341 [
342342 isTransitioned
343343 ? "bg-chat_bg_light dark:bg-chat_bg_dark"
@@ -353,12 +353,31 @@ function SearchChat({
353353 ) }
354354 style = { { opacity : blurred ? opacity / 100 : 1 } }
355355 >
356+ { isTransitioned && (
357+ < div
358+ data-tauri-drag-region = { isTauri }
359+ className = "flex-1 w-full overflow-hidden"
360+ >
361+ < Suspense fallback = { < LoadingFallback /> } >
362+ < ChatAI
363+ ref = { chatAIRef }
364+ key = "ChatAI"
365+ changeInput = { setInput }
366+ isSearchActive = { isSearchActive }
367+ isDeepThinkActive = { isDeepThinkActive }
368+ isMCPActive = { isMCPActive }
369+ getFileUrl = { getFileUrl }
370+ showChatHistory = { showChatHistory }
371+ assistantIDs = { assistantIDs }
372+ />
373+ </ Suspense >
374+ </ div >
375+ ) }
376+
356377 < div
357378 data-tauri-drag-region = { isTauri }
358- className = { `p-2 absolute w-full flex justify-center transition-all duration-500 ${
359- isTransitioned
360- ? "top-[calc(100%-82px)] h-[82px] border-t"
361- : "top-0 h-[82px] border-b"
379+ className = { `p-2 w-full flex justify-center transition-all duration-500 min-h-[82px] ${
380+ isTransitioned ? "border-t" : "border-b"
362381 } border-[#E6E6E6] dark:border-[#272626]`}
363382 >
364383 < InputBox
@@ -395,48 +414,25 @@ function SearchChat({
395414 />
396415 </ div >
397416
398- < div
399- data-tauri-drag-region = { isTauri }
400- className = { `absolute w-full transition-opacity duration-500 ${
401- isTransitioned ? "opacity-0 pointer-events-none" : "opacity-100"
402- } bottom-0 h-[calc(100%-82px)] `}
403- >
404- < Suspense fallback = { < LoadingFallback /> } >
405- < Search
406- key = "Search"
407- isTauri = { isTauri }
408- input = { input }
409- isChatMode = { isChatMode }
410- changeInput = { setInput }
411- hideCoco = { hideCoco }
412- openSetting = { openSetting }
413- setWindowAlwaysOnTop = { setWindowAlwaysOnTop }
414- />
415- </ Suspense >
416- </ div >
417-
418- < div
419- data-tauri-drag-region = { isTauri }
420- className = { `absolute w-full transition-all duration-500 select-auto ${
421- isTransitioned
422- ? "top-0 opacity-100 pointer-events-auto"
423- : "-top-[506px] opacity-0 pointer-events-none"
424- } h-[calc(100%-90px)]`}
425- >
426- < Suspense fallback = { < LoadingFallback /> } >
427- < ChatAI
428- ref = { chatAIRef }
429- key = "ChatAI"
430- changeInput = { setInput }
431- isSearchActive = { isSearchActive }
432- isDeepThinkActive = { isDeepThinkActive }
433- isMCPActive = { isMCPActive }
434- getFileUrl = { getFileUrl }
435- showChatHistory = { showChatHistory }
436- assistantIDs = { assistantIDs }
437- />
438- </ Suspense >
439- </ div >
417+ { ! isTransitioned && (
418+ < div
419+ data-tauri-drag-region = { isTauri }
420+ className = "flex-1 overflow-auto w-full"
421+ >
422+ < Suspense fallback = { < LoadingFallback /> } >
423+ < Search
424+ key = "Search"
425+ isTauri = { isTauri }
426+ input = { input }
427+ isChatMode = { isChatMode }
428+ changeInput = { setInput }
429+ hideCoco = { hideCoco }
430+ openSetting = { openSetting }
431+ setWindowAlwaysOnTop = { setWindowAlwaysOnTop }
432+ />
433+ </ Suspense >
434+ </ div >
435+ ) }
440436
441437 < UpdateApp checkUpdate = { checkUpdate } relaunchApp = { relaunchApp } />
442438 </ div >
0 commit comments