mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
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:
parent
9454c73992
commit
0dd8fb7707
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user