mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Fix positioning of dropdown menus
This commit is contained in:
parent
09954c15d2
commit
572a9ab076
8 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
||||
- if Subscription.is_subscribed(current_user, answer)
|
||||
-# fun joke should subscribe?
|
||||
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-submarine", torpedo: "no" } }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
||||
%a.dropdown-item{ href: "#", data: { bs_target: "#modal-view-comment#{comment.id}-smiles", bs_toggle: :modal } }
|
||||
%i.fa.fa-fw.fa-smile-o
|
||||
= t(".view_smiles")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
||||
- if current_user.mod? || question.user == current_user
|
||||
%a.dropdown-item.text-danger{ href: "#", tabindex: -1, data: { action: "ab-question-destroy", q_id: question.id } }
|
||||
%i.fa.fa-fw.fa-trash-o
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
||||
%a.dropdown-item{ href: twitter_share_url(answer), target: "_blank" }
|
||||
%i.fa.fa-fw.fa-twitter
|
||||
= t(".twitter")
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
%button.btn.btn-default{ title: t(".share.heading"), data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
||||
%i.fa.fa-fw.fa-share-alt
|
||||
%span.visually-hidden= t(".share.heading")
|
||||
.dropdown-menu.dropdown-menu-right{ role: :menu }
|
||||
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
||||
%a.dropdown-item{ href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{user_url(current_user)}", target: "_blank" }
|
||||
%i.fa.fa-fw.fa-twitter
|
||||
= t(".share.button", service: "Twitter")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right.notification-dropdown{ id: "rs-#{size}-nav-notifications" }
|
||||
.dropdown-menu.dropdown-menu-end.notification-dropdown{ id: "rs-#{size}-nav-notifications" }
|
||||
- if notifications.count.zero?
|
||||
%a.dropdown-item.text-center{ href: notifications_path('all') }
|
||||
%i.fa.fa-fw.fa-chevron-right
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.dropdown-menu.dropdown-menu-right.profile-dropdown{ id: "rs-#{size}-nav-profile" }
|
||||
.dropdown-menu.dropdown-menu-end.profile-dropdown{ id: "rs-#{size}-nav-profile" }
|
||||
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
|
||||
%a.dropdown-item{ href: user_path(current_user) }
|
||||
%i.fa.fa-fw.fa-user
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
= list.display_name
|
||||
- else
|
||||
= t(".lists.title")
|
||||
.dropdown-menu.dropdown-menu-right.dropdown-menu--lists
|
||||
.dropdown-menu.dropdown-menu-end.dropdown-menu--lists
|
||||
- if list
|
||||
%h6.dropdown-header= t(".lists.members.title")
|
||||
- if list.members.empty?
|
||||
|
|
Loading…
Reference in a new issue