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 && } + +
+