summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-16 11:44:53 +0000
committerPhil Hughes <me@iamphill.com>2016-03-16 11:44:53 +0000
commitd94dc565ba479e969ad548991b411e058330d8f9 (patch)
treefe83e2c80b89a68a52096af4a41285ffea3cfd52
parenta34021cd182af49fc732c4ad58f7594f73c46f01 (diff)
downloadgitlab-ce-d94dc565ba479e969ad548991b411e058330d8f9.tar.gz
Fixed alignment of download dropdowndownload-dropdown-alignment
With the new dropdown CSS - some dropdowns might look a bit odd
-rw-r--r--app/assets/stylesheets/framework/dropdowns.scss6
-rw-r--r--app/views/projects/repositories/_download_archive.html.haml2
2 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss
index 309da34da07..d71ca9842aa 100644
--- a/app/assets/stylesheets/framework/dropdowns.scss
+++ b/app/assets/stylesheets/framework/dropdowns.scss
@@ -9,6 +9,12 @@
border-left: $caret-width-base solid transparent;
}
+.btn-group {
+ .caret {
+ margin-left: 0;
+ }
+}
+
.dropdown {
position: relative;
}
diff --git a/app/views/projects/repositories/_download_archive.html.haml b/app/views/projects/repositories/_download_archive.html.haml
index b9486a9b492..24658319060 100644
--- a/app/views/projects/repositories/_download_archive.html.haml
+++ b/app/views/projects/repositories/_download_archive.html.haml
@@ -10,7 +10,7 @@
%span.caret
%span.sr-only
Select Archive Format
- %ul.col-xs-10.dropdown-menu{ role: 'menu' }
+ %ul.col-xs-10.dropdown-menu.dropdown-menu-align-right{ role: 'menu' }
%li
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'zip'), rel: 'nofollow' do
%i.fa.fa-download