Skip to content

Commit

Permalink
fix markdown paragraph spacing (#1746)
Browse files Browse the repository at this point in the history
fix #1745
  • Loading branch information
notmd committed Feb 20, 2023
1 parent 81695d8 commit 4206a91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/src/components/Messages/MessageTableEntry.tsx
Expand Up @@ -84,6 +84,7 @@ export function MessageTableEntry({ message, enabled, highlight, showAuthorBadge
size={inlineAvatar ? "xs" : "sm"}
mr={inlineAvatar ? 2 : 0}
mt={inlineAvatar ? 0 : `6px`}
mb={inlineAvatar ? 1.5 : 0}
name={`${boolean(message.is_assistant) ? "Assistant" : "User"}`}
src={`${boolean(message.is_assistant) ? "/images/logos/logo.png" : "/images/temp-avatars/av1.jpg"}`}
/>
Expand Down
5 changes: 4 additions & 1 deletion website/src/components/Messages/RenderedMarkdown.tsx
Expand Up @@ -42,10 +42,13 @@ const sx: SystemStyleObject = {
},
"p:only-child": {
my: 0, // ovoid margin when markdown only render 1 p tag
mt: { base: 1.5, md: 0 },
},
p: {
whiteSpace: "pre-wrap",
mb: 4,
fontSize: "md",
fontWeight: "normal",
lineHeight: 6,
},
wordBreak: "break-word",
"> blockquote": {
Expand Down

0 comments on commit 4206a91

Please sign in to comment.