From 8a2052c0ed5e150ba57396911bd650879250db55 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 1 Jan 2014 23:13:54 +0200 Subject: [PATCH] Smaller select for ref switcher Signed-off-by: Dmitriy Zaporozhets --- app/assets/stylesheets/generic/selects.scss | 10 ++++++++-- app/views/shared/_ref_switcher.html.haml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/generic/selects.scss b/app/assets/stylesheets/generic/selects.scss index 3253014ef1a..ccc825f7a85 100644 --- a/app/assets/stylesheets/generic/selects.scss +++ b/app/assets/stylesheets/generic/selects.scss @@ -57,6 +57,12 @@ max-width: 170px !important; } -select.chosen { - min-width: 200px; +select { + &.chosen { + min-width: 200px; + } + + &.chosen-sm { + min-width: 100px; + } } diff --git a/app/views/shared/_ref_switcher.html.haml b/app/views/shared/_ref_switcher.html.haml index dc8c656e12e..e02b615a4cd 100644 --- a/app/views/shared/_ref_switcher.html.haml +++ b/app/views/shared/_ref_switcher.html.haml @@ -1,5 +1,5 @@ = form_tag switch_project_refs_path(@project), method: :get, class: "project-refs-form" do - = select_tag "ref", grouped_options_refs, class: "project-refs-select chosen" + = select_tag "ref", grouped_options_refs, class: "project-refs-select chosen chosen-sm" = hidden_field_tag :destination, destination - if defined?(path) = hidden_field_tag :path, path -- GitLab