Use `dropdown` instead of `btn-group` for dropdowns
This commit is contained in:
parent
5077039035
commit
22886934db
|
@ -6,12 +6,12 @@
|
|||
%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-comments", data: { a_id: a.id, state: :hidden, selection_hotkey: "x" } }
|
||||
%i.fa.fa-fw.fa-comments
|
||||
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
|
||||
.btn-group
|
||||
.dropdown.d-inline
|
||||
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
%i.fa.fa-fw.fa-share-alt{ title: t(".share.title") }
|
||||
= render "actions/share", answer: a
|
||||
- if user_signed_in?
|
||||
.btn-group
|
||||
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
.dropdown.d-inline
|
||||
%button.btn.btn-link.answerbox__action.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
%span.caret
|
||||
= render "actions/answer", answer: a
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
= render "reactions/destroy", type: "Comment", target: comment
|
||||
- else
|
||||
= render "reactions/create", type: "Comment", target: comment
|
||||
.btn-group
|
||||
%button.btn.btn-link.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
.dropdown.d-inline
|
||||
%button.btn.btn-link.answerbox__action.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
%span.caret
|
||||
= render "actions/comment", comment: comment, answer: a
|
||||
|
|
Loading…
Reference in New Issue