Преглед на файлове

Merge pull request #1103 from shih-liang/patch-1

修复在聊天很短没有覆盖整个区域时显示回到底部按钮的bug
Yifei Zhang преди 1 година
родител
ревизия
64af3ccf0c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -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();