summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-15 14:00:52 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-18 14:45:43 -0500
commit9c42c197ce31c1ac9d77d97aec294cf4fee826da (patch)
tree5de026d248f833fb1ea930d8b01fc48bb04d0b6a
parent748e0b9c546ea9a93efbe039826905775dd34604 (diff)
downloadgitlab-ce-9c42c197ce31c1ac9d77d97aec294cf4fee826da.tar.gz
Fixes inputs width inside .nav-controls
-rw-r--r--app/assets/stylesheets/framework/common.scss1
-rw-r--r--app/assets/stylesheets/framework/filters.scss8
-rw-r--r--app/assets/stylesheets/framework/nav.scss18
-rw-r--r--app/views/dashboard/issues.html.haml2
4 files changed, 26 insertions, 3 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss
index bc03c2180be..7285ccec797 100644
--- a/app/assets/stylesheets/framework/common.scss
+++ b/app/assets/stylesheets/framework/common.scss
@@ -375,7 +375,6 @@ table {
position: absolute;
top: 0;
right: 0;
- width: 250px !important;
visibility: hidden;
}
}
diff --git a/app/assets/stylesheets/framework/filters.scss b/app/assets/stylesheets/framework/filters.scss
index 40a508c1ebc..99e49a70923 100644
--- a/app/assets/stylesheets/framework/filters.scss
+++ b/app/assets/stylesheets/framework/filters.scss
@@ -11,3 +11,11 @@
}
}
}
+
+@media (max-width: $screen-xs-max) {
+ .filter-item {
+ display: block;
+ margin: 0 0 10px 0;
+ }
+}
+
diff --git a/app/assets/stylesheets/framework/nav.scss b/app/assets/stylesheets/framework/nav.scss
index 9d1b7199705..2122ee85c58 100644
--- a/app/assets/stylesheets/framework/nav.scss
+++ b/app/assets/stylesheets/framework/nav.scss
@@ -128,15 +128,23 @@
}
}
- @media (max-width: 600px) {
- .btn, form {
+ @media (max-width: $screen-xs-max) {
+ padding-bottom: 0;
+
+ .btn, form, .dropdown, .dropdown-menu-toggle, .form-control {
margin: 0 0 10px 0;
display: block;
+ width: 100%;
}
form {
display: block;
height: auto;
+
+ input {
+ width: 100%;
+ margin: 0 0 10px 0;
+ }
}
input.input-short {
@@ -146,6 +154,12 @@
.icon-label {
display: inline-block;
}
+
+ // Applies on /dashboard/issues
+ .project-item-select-holder {
+ display: block;
+ margin: 0;
+ }
}
/* Small devices (tablets, 768px and lower) */
diff --git a/app/views/dashboard/issues.html.haml b/app/views/dashboard/issues.html.haml
index dfa5f80eef8..1eec4db45a0 100644
--- a/app/views/dashboard/issues.html.haml
+++ b/app/views/dashboard/issues.html.haml
@@ -10,6 +10,8 @@
- if current_user
= link_to issues_dashboard_url(format: :atom, private_token: current_user.private_token), class: 'btn' do
= icon('rss')
+ %span.icon-label
+ Subscribe
= render 'shared/new_project_item_select', path: 'issues/new', label: "New Issue"
= render 'shared/issuable/filter', type: :issues