Skip to content

Commit

Permalink
added markdown support to chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-mfsi committed Sep 10, 2024
1 parent 16c69a8 commit fdd6849
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/messenger-widget/src/components/Message/Message.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@
color: var(--text-primary-color);
}

/* Disables margin bottom of paragraph tag by default 1rem coming from markdown library*/
.markdown-msg p{
margin-bottom: 0rem;
}

/* =================== Mobile Responsive CSS =================== */
@media only screen and (max-width: 800px) {
.content-style {
Expand Down
3 changes: 2 additions & 1 deletion packages/messenger-widget/src/components/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function Message(props: MessageProps) {
<div className="d-flex">
<div
className={
getMessageStyleClasses(props, messageView) + 'mb-0'
getMessageStyleClasses(props, messageView) +
'mb-0 markdown-msg'
}
>
{/* Reply message preview */}
Expand Down

0 comments on commit fdd6849

Please sign in to comment.