From 9c42c197ce31c1ac9d77d97aec294cf4fee826da Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran <alfredo@gitlab.com> Date: Tue, 15 Mar 2016 14:00:52 -0500 Subject: [PATCH] Fixes inputs width inside .nav-controls --- app/assets/stylesheets/framework/common.scss | 1 - app/assets/stylesheets/framework/filters.scss | 8 ++++++++ app/assets/stylesheets/framework/nav.scss | 18 ++++++++++++++++-- app/views/dashboard/issues.html.haml | 2 ++ 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 -- GitLab