web: dont auto scroll search results
This commit is contained in:
@@ -277,8 +277,9 @@ export default function App() {
|
||||
}, [isAuthenticated, selectedKey]);
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedItem?.kind === "search") return;
|
||||
transcriptEndRef.current?.scrollIntoView({ behavior: "smooth", block: "end" });
|
||||
}, [selectedChat?.messages.length, selectedSearch?.results.length, isSending]);
|
||||
}, [selectedChat?.messages.length, isSending, selectedItem?.kind]);
|
||||
|
||||
const messages = selectedChat?.messages ?? [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user