From b3eb9fb6fa606dd0d6b07edbe6a8a7673a5510d7 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 8 May 2024 15:56:52 +0530 Subject: [PATCH] fix(conversation): mobile abnormal overflows --- frontend/src/conversation/Conversation.tsx | 81 +++++++++++----------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index c6632dab..eac5d7c5 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -56,7 +56,7 @@ export default function Conversation() { setHasScrolledToLast(entry.isIntersecting); }); }; - + const observer = new IntersectionObserver(observerCallback, { root: null, threshold: [1, 0.8], @@ -130,45 +130,48 @@ export default function Conversation() { }; return ( -
- {queries.length > 0 && !hasScrolledToLast && ( - - )} +
+
+ {queries.length > 0 && !hasScrolledToLast && ( + + )} - {queries.length > 0 && ( -
- {queries.map((query, index) => { - return ( - - - {prepResponseView(query, index)} - - ); - })} -
- )} - {queries.length === 0 && } -
+ {queries.length > 0 && ( +
+ {queries.map((query, index) => { + return ( + + + {prepResponseView(query, index)} + + ); + })} +
+ )} + {queries.length === 0 && } + +
+