From 48ec0ae44cf982362afdd408a2ecf5d971d6f872 Mon Sep 17 00:00:00 2001 From: penw0lf Date: Fri, 11 Oct 2024 21:42:49 +0530 Subject: [PATCH 1/2] Solved / #1294 --- frontend/src/Navigation.tsx | 5 ++++- frontend/src/conversation/ConversationTile.tsx | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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({