fix(chat): scroll to preview on inject + sidebar restore + collapsible note list (Option A)

This commit is contained in:
2026-05-03 01:23:08 +02:00
parent 88ba0a561a
commit af6e7a2cdf
3 changed files with 93 additions and 16 deletions

View File

@@ -157,7 +157,7 @@ export function ContextualAIChat({
useEffect(() => {
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' })
}, [messages])
}, [messages, resourcePreview])
useEffect(() => {
window.dispatchEvent(new CustomEvent('contextual-ai-visibility', { detail: true }))