forked from XiaoMo/ChatGPT-Next-Web
fix: improve scroll
This commit is contained in:
parent
0e784c50ad
commit
56ba8a65e0
@ -461,9 +461,9 @@ export function Chat(props: {
|
|||||||
|
|
||||||
// Auto focus
|
// Auto focus
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (props.sideBarShowing) return;
|
if (props.sideBarShowing && isMobileScreen()) return;
|
||||||
inputRef.current?.focus();
|
inputRef.current?.focus();
|
||||||
}, [props.sideBarShowing]);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.chat} key={session.id}>
|
<div className={styles.chat} key={session.id}>
|
||||||
|
Loading…
Reference in New Issue
Block a user