mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-23 10:33:46 +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(() => {
|
setTimeout(() => {
|
||||||
scrollableRef.current?.scrollTo(0, scrollableRef.current?.scrollHeight);
|
scrollableRef.current?.scrollTo(0, scrollableRef.current?.scrollHeight);
|
||||||
}, 50);
|
}, 50);
|
||||||
}, [history, history[history.length - 1].context]]);
|
}, [history, history[history.length - 1].context]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col w-5/6 mx-auto' ref={scrollableRef}>
|
<div className='flex flex-col w-5/6 mx-auto' ref={scrollableRef}>
|
||||||
|
Loading…
Reference in New Issue
Block a user