diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index 052a9643..0cdff05f 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -275,7 +275,10 @@ export default function Navigation({ navOpen, setNavOpen }: NavigationProps) { {t('newChat')}

-
+
{conversations && conversations.length > 0 ? (
diff --git a/frontend/src/conversation/ConversationTile.tsx b/frontend/src/conversation/ConversationTile.tsx index 0193d161..0651447f 100644 --- a/frontend/src/conversation/ConversationTile.tsx +++ b/frontend/src/conversation/ConversationTile.tsx @@ -75,6 +75,15 @@ export default function ConversationTile({ document.removeEventListener('mousedown', handleClickOutside); }; }, []); + + useEffect(() => { + const conversationsMainDiv = document.getElementById( + 'conversationsMainDiv', + ); + conversationsMainDiv && + (conversationsMainDiv.style.overflowY = isOpen ? 'hidden' : 'auto'); + }, [isOpen]); + function onClear() { setConversationsName(conversation.name); setIsEdit(false); @@ -147,7 +156,7 @@ export default function ConversationTile({