File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 16
16
a : hover { background-color : var (--main-bg-dark ); }
17
17
a : global (.active ) { background-color : var (--main-bg-dark ); }
18
18
19
- select {
20
- display : none;
21
- width : 100% ;
22
- padding : 5px ;
23
- }
24
-
25
19
@media only screen and (max-width : 650px ) {
26
20
padding : 0 ;
27
21
background-color : inherit;
28
22
a { display : none; }
29
- select { display : block; }
30
23
}
31
24
}
32
25
26
+ .filter-dropdown-label {
27
+ display : none;
28
+
29
+ @media only screen and (max-width : 650px ) {
30
+ display : flex;
31
+ align-items : center;
32
+ width : 100% ;
33
+ }
34
+ }
35
+
36
+ .filter-dropdown {
37
+ flex-grow : 1 ;
38
+ margin-left : 20px ;
39
+ }
40
+
33
41
.results-meta {
34
42
display : flex;
35
43
align-items : center;
Original file line number Diff line number Diff line change 9
9
</LinkTo >
10
10
{{ /each }}
11
11
12
- <select {{ on " change" this.handleSelection }} >
13
- <option >Filter by the letter...</option >
14
- {{ #each this.alphabet as |letter |}}
15
- <option value ={{ letter }} selected ={{ eq letter this.letter }} >{{ letter }} </option >
16
- {{ /each }}
17
- </select >
12
+ <label local-class =" filter-dropdown-label" >
13
+ Filter by letter:
14
+
15
+ <select local-class =" filter-dropdown" {{ on " change" this.handleSelection }} >
16
+ <option value =" " >No Filter</option >
17
+ {{ #each this.alphabet as |letter |}}
18
+ <option value ={{ letter }} selected ={{ eq letter this.letter }} >{{ letter }} </option >
19
+ {{ /each }}
20
+ </select >
21
+ </label >
18
22
</div >
19
23
20
24
<div local-class =" results-meta" >
You can’t perform that action at this time.
0 commit comments