Commit 8a2052c0ed5e150ba57396911bd650879250db55

Authored by Dmitriy Zaporozhets
1 parent a843ee7e

Smaller select for ref switcher

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/generic/selects.scss
... ... @@ -57,6 +57,12 @@
57 57 max-width: 170px !important;
58 58 }
59 59  
60   -select.chosen {
61   - min-width: 200px;
  60 +select {
  61 + &.chosen {
  62 + min-width: 200px;
  63 + }
  64 +
  65 + &.chosen-sm {
  66 + min-width: 100px;
  67 + }
62 68 }
... ...
app/views/shared/_ref_switcher.html.haml
1 1 = form_tag switch_project_refs_path(@project), method: :get, class: "project-refs-form" do
2   - = select_tag "ref", grouped_options_refs, class: "project-refs-select chosen"
  2 + = select_tag "ref", grouped_options_refs, class: "project-refs-select chosen chosen-sm"
3 3 = hidden_field_tag :destination, destination
4 4 - if defined?(path)
5 5 = hidden_field_tag :path, path
... ...