diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index c6632dab..f09ec08a 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 && } + +
+
)}
-

+

DocsGPT uses GenAI, please review critial information using sources.

diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 7bd26f24..bce831f7 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 )} (