From 0380f7fcaba5ad02d32181272acfa2fcdff771ca Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 31 Aug 2022 18:46:00 +0200 Subject: [PATCH] Remove superfluous hiding span for answerbox actions --- app/views/answerbox/_actions.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/answerbox/_actions.haml b/app/views/answerbox/_actions.haml index 6f2050b9..4b81a5f0 100644 --- a/app/views/answerbox/_actions.haml +++ b/app/views/answerbox/_actions.haml @@ -1,7 +1,6 @@ -%span.d-none.d-sm-inline.text-muted - %button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile", data: { a_id: a.id, action: current_user&.smiled?(a) ? :unsmile : :smile }, disabled: !user_signed_in? } - %i.fa.fa-fw.fa-smile-o - %span{ id: "ab-smile-count-#{a.id}" }= a.smiles.count +%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile", data: { a_id: a.id, action: current_user&.smiled?(a) ? :unsmile : :smile }, disabled: !user_signed_in? } + %i.fa.fa-fw.fa-smile-o + %span{ id: "ab-smile-count-#{a.id}" }= a.smiles.count - unless display_all %button.btn.btn-link.answerbox__action{ type: :button, name: "ab-comments", data: { a_id: a.id, state: :hidden } } %i.fa.fa-fw.fa-comments