diff --git a/src/components/CommentViewer.css b/src/components/CommentViewer.css index 6a3b845..69b6e9d 100644 --- a/src/components/CommentViewer.css +++ b/src/components/CommentViewer.css @@ -5,7 +5,11 @@ .comments { padding: 0.5em 0.5em 0.5em 1em; - border-bottom: 1px solid #f0f0f0; +} + +.infoComments { + padding: 0.5em 0.5em 0.5em 1em; + border-top: 1px solid #f0f0f0; } .ant-collapse { diff --git a/src/components/CommentViewer.tsx b/src/components/CommentViewer.tsx index ef00dde..801cfd4 100644 --- a/src/components/CommentViewer.tsx +++ b/src/components/CommentViewer.tsx @@ -289,41 +289,44 @@ export const CommentViewer: React.FC = ({ )} -
- {comments.map((comment, key) => { - if (comment.type === 'mildInfo') { - return ( -
- element.type === 'mildInfo') && ( +
+ {comments.map((comment, key) => { + if (comment.type === 'mildInfo') { + return (
- + + +

{comment.author}

+
+ } /> -

{comment.author}

- } - /> -
- ) - } else { - return <> - } - })} -
+ ) + } else { + return <> + } + })} + + )} + ) : ( <> diff --git a/src/components/ReplyEditor.css b/src/components/ReplyEditor.css index 6cc2a8f..0e3a53c 100644 --- a/src/components/ReplyEditor.css +++ b/src/components/ReplyEditor.css @@ -6,6 +6,7 @@ width: available; padding-top: 0.5em; padding-right: 0.5em; + padding-bottom: 0.5em; } .controlElementsReply {