Use ellipsis icon for action dropdowns
This commit is contained in:
parent
f4095c42ec
commit
45907c9260
|
@ -12,19 +12,23 @@
|
||||||
%i.fa.fa-eye-slash{ data: { bs_toggle: "tooltip", bs_title: t(".visible_to_you") } }
|
%i.fa.fa-eye-slash{ data: { bs_toggle: "tooltip", bs_title: t(".visible_to_you") } }
|
||||||
- elsif moderation_view?
|
- elsif moderation_view?
|
||||||
%i.fa.fa-eye-slash{ data: { bs_toggle: "tooltip", bs_title: t(".visible_mod_mode") } }
|
%i.fa.fa-eye-slash{ data: { bs_toggle: "tooltip", bs_title: t(".visible_mod_mode") } }
|
||||||
= t(".asked_html", user: user_screen_name(@question.user, context_user: @context_user, author_identifier: author_identifier), time: time_tooltip(@question))
|
= user_screen_name(@question.user, context_user: @context_user, author_identifier: author_identifier)
|
||||||
- if follower_question?
|
- if follower_question?
|
||||||
·
|
·
|
||||||
%a{ href: question_path(@question.user.screen_name, @question.id), data: { selection_hotkey: "a" } }
|
%a{ href: question_path(@question.user.screen_name, @question.id), data: { selection_hotkey: "a" } }
|
||||||
= t(".answers", count: @question.answer_count)
|
= t(".answers", count: @question.answer_count)
|
||||||
|
·
|
||||||
|
= time_tooltip(@question)
|
||||||
|
- else
|
||||||
|
·
|
||||||
|
= link_to(time_tooltip(@question), question_path(@question.user.screen_name, @question.id))
|
||||||
|
- if user_signed_in?
|
||||||
|
.dropdown.d-inline
|
||||||
|
%button.btn.btn-link.btn-sm.p-0{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||||
|
%i.fa.fa-fw.fa-ellipsis
|
||||||
|
= render "actions/question", question: @question
|
||||||
.question__body{ data: { controller: @question.long? ? "collapse" : nil } }
|
.question__body{ data: { controller: @question.long? ? "collapse" : nil } }
|
||||||
.question__text{ class: @question.long? && @collapse ? "collapsed" : "", data: { collapse_target: "content" } }
|
.question__text{ class: @question.long? && @collapse ? "collapsed" : "", data: { collapse_target: "content" } }
|
||||||
= question_markdown @question.content
|
= question_markdown @question.content
|
||||||
- if @question.long? && @collapse
|
- if @question.long? && @collapse
|
||||||
= render "shared/collapse", type: "question"
|
= render "shared/collapse", type: "question"
|
||||||
- if user_signed_in?
|
|
||||||
.flex-shrink-0.ms-auto
|
|
||||||
.btn-group
|
|
||||||
%button.btn.btn-link.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
|
||||||
%span.caret
|
|
||||||
= render "actions/question", question: @question
|
|
||||||
|
|
|
@ -12,6 +12,6 @@
|
||||||
= render "actions/share", answer: a
|
= render "actions/share", answer: a
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
.dropdown.d-inline
|
.dropdown.d-inline
|
||||||
%button.btn.btn-link.answerbox__action.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||||
%span.caret
|
%i.fa.fa-fw.fa-ellipsis
|
||||||
= render "actions/answer", answer: a
|
= render "actions/answer", answer: a
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
- else
|
- else
|
||||||
= render "reactions/create", type: "Comment", target: comment
|
= render "reactions/create", type: "Comment", target: comment
|
||||||
.dropdown.d-inline
|
.dropdown.d-inline
|
||||||
%button.btn.btn-link.answerbox__action.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||||
%span.caret
|
%i.fa.fa-fw.fa-ellipsis
|
||||||
= render "actions/comment", comment: comment, answer: a
|
= render "actions/comment", comment: comment, answer: a
|
||||||
|
|
Loading…
Reference in New Issue