From eca1e66ea985e8a75cdd1184c36129e7ac3218ca Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 31 Aug 2022 20:16:16 +0200 Subject: [PATCH] Remove superfluous hiding span for comment actions --- app/views/answerbox/_comments.haml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/views/answerbox/_comments.haml b/app/views/answerbox/_comments.haml index 7193c7a5..e7b206eb 100644 --- a/app/views/answerbox/_comments.haml +++ b/app/views/answerbox/_comments.haml @@ -17,14 +17,13 @@ .comment__content = markdown comment.content .pull-right - %span.d-none.d-sm-inline.text-muted - %button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile-comment", data: { c_id: comment.id, action: current_user&.smiled?(comment) ? :unsmile : :smile }, disabled: !user_signed_in? } - %i.fa.fa-fw.fa-smile-o - %span{ id: "ab-comment-smile-count-#{comment.id}" }= comment.smile_count - .btn-group - %button.btn.btn-link.btn-sm.dropdown-toggle{ data: { toggle: :dropdown }, aria: { expanded: false } } - %span.caret - = render "actions/comment", comment: comment, answer: a + %button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile-comment", data: { c_id: comment.id, action: current_user&.smiled?(comment) ? :unsmile : :smile }, disabled: !user_signed_in? } + %i.fa.fa-fw.fa-smile-o + %span{ id: "ab-comment-smile-count-#{comment.id}" }= comment.smile_count + .btn-group + %button.btn.btn-link.btn-sm.dropdown-toggle{ data: { toggle: :dropdown }, aria: { expanded: false } } + %span.caret + = render "actions/comment", comment: comment, answer: a - if user_signed_in? .form-group.has-feedback.comment__input-group{ name: "ab-comment-new-group", data: { a_id: a.id } } %input.form-control.comment__input{ type: :text, placeholder: t(".placeholder"), name: "ab-comment-new", data: { a_id: a.id } }