From 56ba8a65e06937b7ba1a072cb959e0d3626c32d7 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Mon, 3 Apr 2023 03:35:24 +0000 Subject: [PATCH 1/2] fix: improve scroll --- app/components/chat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (
From 6e6d2a3310604dcb3e6aa1ba78ea05b02ac60c57 Mon Sep 17 00:00:00 2001 From: Yifei Zhang Date: Mon, 3 Apr 2023 11:43:38 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) 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)