refactor(chat): move modern-scrollbar class to conditional styling
Improves maintainability by moving the 'modern-scrollbar' class to the conditional styling block in BaseChat.tsx, making the code more consistent and easier to manage.
This commit is contained in:
@@ -348,8 +348,8 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
</div>
|
||||
)}
|
||||
<StickToBottom
|
||||
className={classNames('modern-scrollbar pt-6 px-2 sm:px-6 relative', {
|
||||
'h-full flex flex-col': chatStarted,
|
||||
className={classNames('pt-6 px-2 sm:px-6 relative', {
|
||||
'h-full flex flex-col modern-scrollbar': chatStarted,
|
||||
})}
|
||||
resize="smooth"
|
||||
initial="smooth"
|
||||
|
||||
Reference in New Issue
Block a user