diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css index 5b112ef3e..c2063926f 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css @@ -1,5 +1,4 @@ .container { - line-height: 1.3; } .container table { diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx index f73ed9a43..926ef8d74 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx @@ -76,7 +76,7 @@ const AppMarkdownBase: React.FC<{ }, []); return ( -
+
{children}
); @@ -52,17 +48,13 @@ export const CustomParagraph: React.FC< } return ( -+
{children}
); }; -const headingVariants = cva('leading-1.3', { +const headingVariants = cva('', { variants: { level: { 1: 'text-3xl ', @@ -108,7 +100,7 @@ export const CustomList: React.FC< > = ({ ordered, children, markdown, showLoader, ...rest }) => { const ListTag = ordered ? 'ol' : 'ul'; return ( -+{children}); @@ -186,9 +172,7 @@ export const CustomTable: React.FC< } & ExtraPropsExtra > = ({ children, markdown, showLoader, ...rest }) => { return ( -- {children} -
+{children}
); }; @@ -200,8 +184,6 @@ export const CustomSpan: React.FC< } & ExtraPropsExtra > = ({ children, markdown, showLoader, ...rest }) => { return ( - - {children} - + {children} ); }; diff --git a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx index ffe6f1493..53a4ed01a 100644 --- a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx +++ b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { ChatResponseMessageProps } from './ChatResponseMessageSelector'; -import { StreamingMessage_Text } from '@/components/ui/streaming/StreamingMessage_Text'; import { BusterChatResponseMessage_text } from '@/api/asset_interfaces'; import { useGetChatMessage } from '@/api/buster_rest/chats'; +import { AppMarkdown } from '@/components/ui/typography/AppMarkdown'; export const ChatResponseMessage_Text: React.FC= React.memo( ({ responseMessageId, messageId, isCompletedStream }) => { @@ -12,7 +12,16 @@ export const ChatResponseMessage_Text: React.FC = Reac ) as BusterChatResponseMessage_text; const { message } = responseMessage; - return ; + return ( + + ); + + // return ; } ); diff --git a/web/src/styles/styles.scss b/web/src/styles/styles.scss index d64b57818..8d59e9cf7 100644 --- a/web/src/styles/styles.scss +++ b/web/src/styles/styles.scss @@ -44,5 +44,5 @@ body { } p { - @apply leading-1.3; + @apply leading-1.5; }