Merge branch 'Yidadaa:main' into main

This commit is contained in:
latorc 2023-04-03 12:33:18 +08:00 committed by GitHub
commit 13cbcd6eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -184,7 +184,6 @@ docker run -d -p 3000:3000 -e OPENAI_API_KEY="" -e CODE="" yidadaa/chatgpt-next-
## 鸣谢 Special Thanks ## 鸣谢 Special Thanks
### 捐赠者 Sponsor ### 捐赠者 Sponsor
[@mushan0x0](https://github.com/mushan0x0) [@mushan0x0](https://github.com/mushan0x0)

View File

@ -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}>