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:
KevIsDev 2025-04-30 12:43:54 +01:00
parent 9454c73992
commit 0dd8fb7707

View File

@ -348,8 +348,8 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
</div> </div>
)} )}
<StickToBottom <StickToBottom
className={classNames('modern-scrollbar pt-6 px-2 sm:px-6 relative', { className={classNames('pt-6 px-2 sm:px-6 relative', {
'h-full flex flex-col': chatStarted, 'h-full flex flex-col modern-scrollbar': chatStarted,
})} })}
resize="smooth" resize="smooth"
initial="smooth" initial="smooth"