From b3eb9fb6fa606dd0d6b07edbe6a8a7673a5510d7 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Wed, 8 May 2024 15:56:52 +0530 Subject: [PATCH 1/4] 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 && } + +
+
Date: Wed, 8 May 2024 16:07:49 +0530 Subject: [PATCH 2/4] fix(conversation) word breaks --- frontend/src/conversation/ConversationBubble.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 7bd26f24..f7a15459 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -47,13 +47,13 @@ const ConversationBubble = forwardRef< const [isDislikeClicked, setIsDislikeClicked] = useState(false); let bubble; - + if (type === 'QUESTION') { bubble = (
- + {message}
@@ -88,7 +88,7 @@ const ConversationBubble = forwardRef< alert )} Date: Wed, 8 May 2024 16:17:16 +0530 Subject: [PATCH 3/4] (conversation) makes overflow auto --- frontend/src/conversation/Conversation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index eac5d7c5..ed66a13b 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -134,7 +134,7 @@ export default function Conversation() {
{queries.length > 0 && !hasScrolledToLast && (