Skip to content

Commit c604a6a

Browse files
committed
fixed search filters filter select styling
1 parent e2d1531 commit c604a6a

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

app/assets/stylesheets/search.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
border-top: 1px solid $muted-graphic;
55
}
66

7+
.search-filters-filter {
8+
.select2-container {
9+
margin: 2px 0;
10+
11+
.selection {
12+
.select2-selection {
13+
border-color: $muted-graphic;
14+
height: 100%;
15+
padding: 4px 0;
16+
}
17+
18+
.select2-selection__arrow {
19+
top: 50%;
20+
translate: 0 -50%;
21+
}
22+
}
23+
}
24+
}
25+
726
.search-filters-constraints {
827
display: grid;
928
column-gap: 0.5em;

app/views/search/_filters.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="form-group">
66
<input name="sort" type="hidden" value="<%= params[:sort] || '' %>" />
77

8-
<div class="form-group-horizontal">
8+
<div class="form-group-horizontal search-filters-filter">
99
<div class="form-group">
1010
<%= label_tag :predefined_filter, 'Predefined Filters', class: "form-element" %>
1111
<%= select_tag :predefined_filter, options_for_select([@active_filter[:name]],

0 commit comments

Comments
 (0)