From afeac06dd9cc4608740837948f64427a56204861 Mon Sep 17 00:00:00 2001 From: Ben Ilegbodu Date: Tue, 23 Jul 2024 19:08:12 -0500 Subject: [PATCH] Style more block elements returned by Markdown component --- src/app/components/AssistantChatBubbleContent.tsx | 2 +- src/app/components/Markdown.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/AssistantChatBubbleContent.tsx b/src/app/components/AssistantChatBubbleContent.tsx index 6dc8c51..1b6ea4f 100644 --- a/src/app/components/AssistantChatBubbleContent.tsx +++ b/src/app/components/AssistantChatBubbleContent.tsx @@ -66,7 +66,7 @@ const AssistantChatBubbleContent = ({ message }: { message: Message }) => { const content = typeof parsedContent === 'string' ? parsedContent : null const itemIds = Array.isArray(parsedContent) ? parsedContent : [] - // When there is content, there are now recommended items to show. + // When there is content, there are no recommended items to show. if (content) { return } diff --git a/src/app/components/Markdown.tsx b/src/app/components/Markdown.tsx index fd7389d..5d205df 100644 --- a/src/app/components/Markdown.tsx +++ b/src/app/components/Markdown.tsx @@ -7,7 +7,7 @@ const Markdown = styled(ReactMarkdown)(({ theme }) => ({ flexDirection: 'column', gap: theme.spacing(2), }, - '& p': { + '& p, & h2, & h3, & h4, & h5, & h6, & ul': { margin: 0, }, }))