Yidadaa 1 anno fa
parent
commit
06268543d0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -616,7 +616,7 @@ export function Chat() {
 
   const location = useLocation();
   const isChat = location.pathname === Path.Chat;
-  const autoFocus = isChat; // only focus in chat page
+  const autoFocus = !isMobileScreen || isChat; // only focus in chat page
 
   return (
     <div className={styles.chat} key={session.id}>