mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Scroll down when Quilly appears
This commit is contained in:
1 file changed
+5
-3
@@ -300,10 +300,12 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
|
||||
setIsModelSelectorOpen(true);
|
||||
}, []);
|
||||
|
||||
// Scroll to bottom when AI error occurs
|
||||
// Scroll to bottom when any error occurs (AI error or console error)
|
||||
useEffect(() => {
|
||||
scrollToBottom();
|
||||
}, [aiError, scrollToBottom]);
|
||||
if (displayError) {
|
||||
scrollToBottom();
|
||||
}
|
||||
}, [displayError, scrollToBottom]);
|
||||
|
||||
// Check for autostart parameter and trigger AI generation
|
||||
useEffect(() => {
|
||||
|
||||
Reference in new issue
Block a user