diff --git a/src/assistant/Conversations/Sources/Sources.jsx b/src/assistant/Conversations/Sources/Sources.jsx index b7434504c..dbb92d924 100644 --- a/src/assistant/Conversations/Sources/Sources.jsx +++ b/src/assistant/Conversations/Sources/Sources.jsx @@ -22,6 +22,11 @@ const Sources = ({ messageId, files }) => { setShowSources(v => !v) } + // we want to scroll down to the sources button when it is displayed + useEffect(() => { + ref.current?.scrollIntoView(false) + }, []) + useEffect(() => { if (showSources) { const sourcesBottom = ref.current.getBoundingClientRect().bottom