Revert "Revert "Revert scroll update for arboretum""

This commit is contained in:
Strider 2025-05-30 12:05:19 -04:00 committed by GitHub
parent 4b984dfafc
commit fdfa6e9633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 21 deletions

View File

@ -1,26 +1,6 @@
.container {
width: 100%;
padding: 1rem;
max-height: calc(100vh - 4rem);
overflow-y: auto;
scrollbar-gutter: stable;
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: var(--bolt-elements-borderColor);
border-radius: 4px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: var(--bolt-elements-textTertiary);
}
}
.grid {

View File

@ -150,7 +150,9 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
data-chat-visible={showChat}
>
<ClientOnly>{() => <Menu />}</ClientOnly>
<div ref={scrollRef} className="flex flex-col lg:flex-row w-full h-full">
<div ref={scrollRef} className={classNames("w-full h-full flex flex-col lg:flex-row", {
"overflow-y-auto": !chatStarted,
})}>
<div className={classNames(styles.Chat, 'flex flex-col flex-grow lg:min-w-[var(--chat-min-width)] h-full')}>
{!chatStarted && <IntroSection />}
<div