diff --git a/client/coral-embed-stream/src/components/Comment.css b/client/coral-embed-stream/src/components/Comment.css index 86b0014bf..c9dbeac69 100644 --- a/client/coral-embed-stream/src/components/Comment.css +++ b/client/coral-embed-stream/src/components/Comment.css @@ -167,4 +167,5 @@ .commentAvatar { max-width: 50px; margin-right: 10px; + margin-top: 10px; } diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index 0cd37a92a..e612affb0 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -429,27 +429,10 @@ export default class Comment extends React.Component { className={rootClassName} id={`c_${comment.id}`} > -
- - {isStaff(comment.tags) ? Staff : null} - - {commentIsBest(comment) - ? - : null } - - - - { - (comment.editing && comment.editing.edited) - ?  ({t('comment.edited')}) - : null - } - - +
- { (currentUser && (comment.user.id === currentUser.id)) && +
+ + {isStaff(comment.tags) ? Staff : null} - /* User can edit/delete their own comment for a short window after posting */ - + {commentIsBest(comment) + ? + : null } + + + { - commentIsStillEditable(comment) && - Edit + (comment.editing && comment.editing.edited) + ?  ({t('comment.edited')}) + : null } - } - { (currentUser && (comment.user.id !== currentUser.id)) && - /* TopRightMenu allows currentUser to ignore other users' comments */ - - + + + { (currentUser && (comment.user.id === currentUser.id)) && + + /* User can edit/delete their own comment for a short window after posting */ + + { + commentIsStillEditable(comment) && + Edit + } - } - { - this.state.isEditing - ? - :
- -
- } + } + { (currentUser && (comment.user.id !== currentUser.id)) && -
- - - - - - - {!disableReply && - - - } -
-
- - - - -
-
- {activeReplyBox === comment.id - ? { - setActiveReplyBox(''); - }} - charCountEnable={charCountEnable} - maxCharCount={maxCharCount} - setActiveReplyBox={setActiveReplyBox} - parentId={(depth < THREADING_LEVEL) ? comment.id : parentId} - addNotification={addNotification} - postComment={postComment} - currentUser={currentUser} - assetId={asset.id} - /> - : null} + /* TopRightMenu allows currentUser to ignore other users' comments */ + + + + } + { + this.state.isEditing + ? + :
+ +
+ } - - {view.map((reply) => { - return commentIsIgnored(reply) - ? - : + + + + + + + {!disableReply && + + + } +
+
+ + + + +
+
+ + + {activeReplyBox === comment.id + ? { + setActiveReplyBox(''); + }} charCountEnable={charCountEnable} maxCharCount={maxCharCount} - showSignInDialog={showSignInDialog} - commentIsIgnored={commentIsIgnored} - liveUpdates={liveUpdates} - key={reply.id} - comment={reply} - />; - })} - -
- + setActiveReplyBox={setActiveReplyBox} + parentId={(depth < THREADING_LEVEL) ? comment.id : parentId} + addNotification={addNotification} + postComment={postComment} + currentUser={currentUser} + assetId={asset.id} + /> + : null} + + + {view.map((reply) => { + return commentIsIgnored(reply) + ? + : ; + })} + +
+
);