修复在聊天很短没有覆盖整个区域时显示回到底部按钮的bug

This commit is contained in:
Shi Liang 2023-04-26 21:42:43 +08:00 committed by GitHub
parent 2deb5cbc9e
commit 0f9fe92fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,7 +438,7 @@ export function Chat() {
const [isLoading, setIsLoading] = useState(false);
const { submitKey, shouldSubmit } = useSubmitHandler();
const { scrollRef, setAutoScroll, scrollToBottom } = useScrollToBottom();
const [hitBottom, setHitBottom] = useState(false);
const [hitBottom, setHitBottom] = useState(true);
const isMobileScreen = useMobileScreen();
const navigate = useNavigate();