diff --git a/README.md b/README.md index 2e89b18a9..815aba1af 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,6 @@ docker run -d -p 3000:3000 -e OPENAI_API_KEY="" -e CODE="" yidadaa/chatgpt-next- ## 鸣谢 Special Thanks - ### 捐赠者 Sponsor [@mushan0x0](https://github.com/mushan0x0) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index f13ba6e70..8b687c7eb 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -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 (