Skip to content

Commit

Permalink
Merge pull request #33 from nlxai/render-lists
Browse files Browse the repository at this point in the history
Render lists in chat bubble
  • Loading branch information
peterszerzo authored Mar 25, 2024
2 parents bcc532e + 1bb4469 commit 997807c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/chat-widget/src/ui/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,23 @@ export const Message = styled.div<{ type: "user" | "bot" }>`
color: ${(props) =>
props.type === "user" ? props.theme.white : "#232323"};
}
ul,
ol {
list-style-position: inside;
}
ul {
list-style-type: disc;
}
ul ::marker {
margin-right: 6px;
}
ol {
list-style-type: decimal;
}
`;

export const FailureMessage = styled.p<{}>`
Expand Down

0 comments on commit 997807c

Please sign in to comment.