-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af516f1
commit 7a9fc13
Showing
7 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1661,7 +1661,7 @@ | |
padding-bottom: 24px; | ||
} | ||
|
||
& ul { | ||
& ul.messages-list { | ||
padding: 21px 0 10px; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
apps/meteor/client/components/Message/MessageBodyRender/OrderedList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import { MessageOrderedList, MessageOrderedListItem } from '@rocket.chat/fuselage'; | ||
import { OrderedList as ASTOrderedList } from '@rocket.chat/message-parser'; | ||
import React, { FC } from 'react'; | ||
|
||
import Inline from './Inline'; | ||
|
||
const OrderedList: FC<{ value: ASTOrderedList['value'] }> = ({ value }) => ( | ||
<ol> | ||
<MessageOrderedList> | ||
{value.map((item, index) => ( | ||
<li key={index}> | ||
<MessageOrderedListItem key={index}> | ||
<Inline value={item.value} /> | ||
</li> | ||
</MessageOrderedListItem> | ||
))} | ||
</ol> | ||
</MessageOrderedList> | ||
); | ||
|
||
export default OrderedList; |
5 changes: 3 additions & 2 deletions
5
apps/meteor/client/components/Message/MessageBodyRender/Paragraph.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { MessageParagraph } from '@rocket.chat/fuselage'; | ||
import { Paragraph as ASTParagraph } from '@rocket.chat/message-parser'; | ||
import React, { FC } from 'react'; | ||
|
||
import Inline from './Inline'; | ||
|
||
const Paragraph: FC<{ value: ASTParagraph['value'] }> = ({ value = [] }) => ( | ||
<p> | ||
<MessageParagraph> | ||
<Inline value={value} /> | ||
</p> | ||
</MessageParagraph> | ||
); | ||
|
||
export default Paragraph; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
apps/meteor/client/components/Message/MessageBodyRender/UnorderedList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import { MessageUnorderedList, MessageUnorderedListItem } from '@rocket.chat/fuselage'; | ||
import { UnorderedList as ASTUnorderedList } from '@rocket.chat/message-parser'; | ||
import React, { FC } from 'react'; | ||
|
||
import Inline from './Inline'; | ||
|
||
const UnorderedList: FC<{ value: ASTUnorderedList['value'] }> = ({ value }) => ( | ||
<ul> | ||
<MessageUnorderedList> | ||
{value.map((item) => ( | ||
<li> | ||
<MessageUnorderedListItem> | ||
<Inline value={item.value} /> | ||
</li> | ||
</MessageUnorderedListItem> | ||
))} | ||
</ul> | ||
</MessageUnorderedList> | ||
); | ||
|
||
export default UnorderedList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters