mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-22 18:20:06 +00:00
chat page scroll logic optimization
This commit is contained in:
parent
0747835067
commit
7535b69244
@ -72,7 +72,7 @@ const ChatCompletion: React.FC = () => {
|
||||
setTimeout(() => {
|
||||
scrollableRef.current?.scrollTo(0, scrollableRef.current?.scrollHeight);
|
||||
}, 50);
|
||||
}, [history, history[history.length - 1].context]]);
|
||||
}, [history, history[history.length - 1].context]);
|
||||
|
||||
return (
|
||||
<div className='flex flex-col w-5/6 mx-auto' ref={scrollableRef}>
|
||||
|
Loading…
Reference in New Issue
Block a user