mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-29 06:38:50 +01:00
useDocumentTitle changes title on first title change, scrollBar renders when expected
This commit is contained in:
parent
7347eda219
commit
f18317f7b7
5 changed files with 16 additions and 85 deletions
|
|
@ -18,7 +18,7 @@ const Messages = ({ messages }) => {
|
|||
return () => {
|
||||
clearTimeout(timeoutId);
|
||||
};
|
||||
}, []);
|
||||
}, [messages]);
|
||||
|
||||
const scrollToBottom = () => {
|
||||
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
||||
|
|
@ -72,7 +72,7 @@ const Messages = ({ messages }) => {
|
|||
timeout={400}
|
||||
classNames="scroll-down"
|
||||
unmountOnExit={false}
|
||||
appear
|
||||
// appear
|
||||
>
|
||||
{(state) => showScrollButton && <ScrollToBottom scrollHandler={scrollHandler} />}
|
||||
</CSSTransition>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue