fix: improve scroll

This commit is contained in:
Yifei Zhang 2023-04-03 03:35:24 +00:00
parent 0e784c50ad
commit 56ba8a65e0
1 changed files with 2 additions and 2 deletions

View File

@ -461,9 +461,9 @@ export function Chat(props: {
// Auto focus
useEffect(() => {
if (props.sideBarShowing) return;
if (props.sideBarShowing && isMobileScreen()) return;
inputRef.current?.focus();
}, [props.sideBarShowing]);
}, []);
return (
<div className={styles.chat} key={session.id}>