OSDN Git Service

Smaller select for ref switcher
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 1 Jan 2014 21:13:54 +0000 (23:13 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Wed, 1 Jan 2014 21:13:54 +0000 (23:13 +0200)
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/generic/selects.scss
app/views/shared/_ref_switcher.html.haml

index 3253014..ccc825f 100644 (file)
   max-width: 170px !important;
 }
 
-select.chosen {
-  min-width: 200px;
+select {
+  &.chosen {
+    min-width: 200px;
+  }
+
+  &.chosen-sm {
+    min-width: 100px;
+  }
 }
index dc8c656..e02b615 100644 (file)
@@ -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