fix(ai-chat): enhance layout responsiveness in AIModelIndicator and ChatInterface components

- Updated the AIModelIndicator to adjust the visibility of the model name based on medium screen sizes.
- Modified the ChatInterface to ensure the GlobalFileDropZone uses the correct container class for improved layout consistency.

These changes improve the adaptability and user experience of the UI components.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-09-04 23:41:37 +08:00
parent f012707ebf
commit 68f92593b0
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ export const AIModelIndicator = memo(({ className, onModelChange }: AIModelIndic
)}
>
<i className={cn("size-3", iconClass)} />
<span className="@sm:inline hidden max-w-20 truncate">
<span className="@md:inline hidden max-w-20 truncate">
{AIModelNameMapping[modelName] || modelName}
</span>
{hasMultipleModels && <i className="i-mingcute-down-line size-3 opacity-60" />}

View File

@ -226,8 +226,8 @@ const ChatInterfaceContent = ({ centerInputOnEmpty }: ChatInterfaceProps) => {
const shouldShowScrollToBottom = hasMessages && !isAtBottom && !isLoadingHistory
return (
<GlobalFileDropZone className="flex size-full flex-col">
<div className="@container flex min-h-0 flex-1 flex-col" ref={scrollContainerParentRef}>
<GlobalFileDropZone className="@container flex size-full flex-col">
<div className="flex min-h-0 flex-1 flex-col" ref={scrollContainerParentRef}>
<AnimatePresence>
{!hasMessages && !isLoadingHistory ? (
<WelcomeScreen onSend={handleSendMessage} centerInputOnEmpty={centerInputOnEmpty} />