Skip to content

Commit

Permalink
Smaller select for ref switcher
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
  • Loading branch information
dzaporozhets committed Jan 1, 2014
1 parent a843ee7 commit 8a2052c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions app/assets/stylesheets/generic/selects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
max-width: 170px !important;
}

select.chosen {
min-width: 200px;
select {
&.chosen {
min-width: 200px;
}

&.chosen-sm {
min-width: 100px;
}
}
2 changes: 1 addition & 1 deletion app/views/shared/_ref_switcher.html.haml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8a2052c

Please sign in to comment.