@@ -330,7 +330,7 @@ export default class Comment extends React.Component {
330330 </ time >
331331 </ div >
332332
333- < div className = "col-1 col-md-1 ms-auto a4-comments__dropdown-container" >
333+ < div className = "col-5 col-md-4 ms-auto a4-comments__dropdown-container" >
334334 { ! this . props . is_deleted && ( this . props . has_changing_permission || this . props . has_deleting_permission ) &&
335335 < CommentManageDropdown
336336 id = { this . props . id }
@@ -377,39 +377,40 @@ export default class Comment extends React.Component {
377377 lastEdit = { this . state . moderatorFeedback . last_edit }
378378 feedbackText = { this . state . moderatorFeedback . feedback_text }
379379 /> }
380+ < div className = "a4-comments__action" >
381+ < div className = "row" >
382+ < div className = "col-12 a4-comments__action-bar-container" >
383+ { this . renderRatingBox ( ) }
384+
385+ < div className = "a4-comments__action-bar" >
386+ { ( ( this . allowForm ( ) && ! this . props . is_deleted ) || ( this . props . child_comments && this . props . child_comments . length > 0 ) ) &&
387+ < button className = "btn btn--no-border a4-comments__action-bar__btn" type = "button" onClick = { this . toggleShowComments . bind ( this ) } >
388+ < a href = "#child-comment-form" >
389+ < i className = { this . state . showChildComments ? 'fa fa-minus' : 'far fa-comment' } aria-hidden = "true" /> { getAnswerForm ( this . state . showChildComments , this . props . child_comments . length ) }
390+ </ a >
391+ </ button > }
392+
393+ { ! this . props . is_deleted &&
394+ < a
395+ className = "btn btn--no-border a4-comments__action-bar__btn" href = { '?comment_' + this . props . id }
396+ data-bs-toggle = "modal" data-bs-target = { '#share_comment_' + this . props . id }
397+ > < i className = "fas fa-share" aria-hidden = "true" /> { translated . share }
398+ </ a > }
399+
400+ { ! this . props . is_deleted && this . props . authenticated_user_pk && ! this . props . is_users_own_comment &&
401+ < a
402+ className = "btn btn--no-border a4-comments__action-bar__btn" href = { '#report_comment_' + this . props . id }
403+ data-bs-toggle = "modal"
404+ > < i className = "fas fa-exclamation-triangle" aria-hidden = "true" /> { translated . report }
405+ </ a > }
380406
381- < div className = "row" >
382- < div className = "col-12 a4-comments__action-bar-container" >
383- { this . renderRatingBox ( ) }
384-
385- < div className = "a4-comments__action-bar" >
386- { ( ( this . allowForm ( ) && ! this . props . is_deleted ) || ( this . props . child_comments && this . props . child_comments . length > 0 ) ) &&
387- < button className = "btn btn--no-border a4-comments__action-bar__btn" type = "button" onClick = { this . toggleShowComments . bind ( this ) } >
388- < a href = "#child-comment-form" >
389- < i className = { this . state . showChildComments ? 'fa fa-minus' : 'far fa-comment' } aria-hidden = "true" /> { getAnswerForm ( this . state . showChildComments , this . props . child_comments . length ) }
390- </ a >
391- </ button > }
392-
393- { ! this . props . is_deleted &&
394- < a
395- className = "btn btn--no-border a4-comments__action-bar__btn" href = { '?comment_' + this . props . id }
396- data-bs-toggle = "modal" data-bs-target = { '#share_comment_' + this . props . id }
397- > < i className = "fas fa-share" aria-hidden = "true" /> { translated . share }
398- </ a > }
399-
400- { ! this . props . is_deleted && this . props . authenticated_user_pk && ! this . props . is_users_own_comment &&
401- < a
402- className = "btn btn--no-border a4-comments__action-bar__btn" href = { '#report_comment_' + this . props . id }
403- data-bs-toggle = "modal"
404- > < i className = "fas fa-exclamation-triangle" aria-hidden = "true" /> { translated . report }
405- </ a > }
406-
407+ </ div >
407408 </ div >
408409 </ div >
409410 </ div >
410411 </ div >
411412
412- < div className = "container" >
413+ < >
413414 { this . state . showChildComments
414415 ? (
415416 < div className = "a4-comments__child--list" >
@@ -456,7 +457,7 @@ export default class Comment extends React.Component {
456457 </ div >
457458 </ div > )
458459 : null }
459- </ div >
460+ </ >
460461 < ReportModal
461462 name = { 'report_comment_' + this . props . id }
462463 description = { translated . reportTitle }
0 commit comments