Commit b0ec6150 authored by Hannes Rosenögger's avatar Hannes Rosenögger

Fixes the sort dropdown goind outside of the screen

see gitlab-org/gitlab-ce#986
parent ada6c608
...@@ -54,6 +54,11 @@ pre { ...@@ -54,6 +54,11 @@ pre {
text-shadow: none; text-shadow: none;
} }
.dropdown-menu-align-right {
left: auto;
right: 0px;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus { .dropdown-menu > li > a:focus {
background: $bg_primary; background: $bg_primary;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- else - else
Newest Newest
%b.caret %b.caret
%ul.dropdown-menu %ul.dropdown-menu.dropdown-menu-align-right
%li %li
= link_to page_filter_path(sort: 'newest') do = link_to page_filter_path(sort: 'newest') do
= sort_title_recently_created = sort_title_recently_created
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment