This commit is contained in:
Dustin Loring 2024-12-06 09:42:58 -05:00
parent 773e69ef7a
commit 5692a4c011

View File

@ -488,13 +488,15 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
<IconButton <IconButton
title="Model Settings" title="Model Settings"
className={classNames('transition-all flex items-center gap-1', { className={classNames('transition-all flex items-center gap-1', {
'bg-bolt-elements-item-backgroundAccent text-bolt-elements-item-contentAccent': isModelSettingsCollapsed, 'bg-bolt-elements-item-backgroundAccent text-bolt-elements-item-contentAccent':
'bg-bolt-elements-item-backgroundDefault text-bolt-elements-item-contentDefault': !isModelSettingsCollapsed, isModelSettingsCollapsed,
'bg-bolt-elements-item-backgroundDefault text-bolt-elements-item-contentDefault':
!isModelSettingsCollapsed,
})} })}
onClick={() => setIsModelSettingsCollapsed(!isModelSettingsCollapsed)} onClick={() => setIsModelSettingsCollapsed(!isModelSettingsCollapsed)}
> >
<div className={`i-ph:caret-${isModelSettingsCollapsed ? 'right' : 'down'} text-lg`} /> <div className={`i-ph:caret-${isModelSettingsCollapsed ? 'right' : 'down'} text-lg`} />
{isModelSettingsCollapsed && <span className="text-xs">{model}</span>} {isModelSettingsCollapsed ? <span className="text-xs">{model}</span> : <span />}
</IconButton> </IconButton>
{chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>} {chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>}
</div> </div>