Skip to content

Commit

Permalink
Style more block elements returned by Markdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
benmvp committed Jul 24, 2024
1 parent 2f07c14 commit afeac06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/AssistantChatBubbleContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TextContentOnly key={content} content={content} />
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}))
Expand Down

0 comments on commit afeac06

Please sign in to comment.