From 992f817fefb9f938727de043b5a444f4421539a6 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sat, 7 Oct 2023 13:24:12 +0530 Subject: [PATCH] Fix: Sources feature doesn't look as intended --- frontend/src/conversation/ConversationBubble.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 2793a9bf..09238e29 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -131,7 +131,7 @@ const ConversationBubble = forwardRef< : 'text-[#007DFF]' }`} > - {index + 1}. {source.title} + {index + 1}. {source.title.substring(0, 45)}

))} @@ -173,15 +173,13 @@ const ConversationBubble = forwardRef< {sources && openSource !== null && sources[openSource] && ( -
-

+

+

Source: {sources[openSource].title}

-
-

- {sources[openSource].text} -

+
+

{sources[openSource].text}

)}