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:
parent
f012707ebf
commit
68f92593b0
|
|
@ -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" />}
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue