File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ class SearchHeader extends React.Component {
22
22
handleScroll ( ) {
23
23
if ( window . innerWidth >= 640 ) {
24
24
this . setState ( { searchIsFixed : false } ) ;
25
- } else if ( window . scrollY === 0 && this . state . searchIsFixed === true ) {
25
+ } else if ( window . scrollY <= 30 && this . state . searchIsFixed === true ) {
26
26
this . setState ( { searchIsFixed : false } ) ;
27
- } else if ( window . scrollY !== 0 && this . state . searchIsFixed !== true ) {
27
+ } else if ( window . scrollY > 30 && this . state . searchIsFixed !== true ) {
28
28
this . setState ( { searchIsFixed : true } ) ;
29
29
}
30
30
}
Original file line number Diff line number Diff line change 118
118
left : 0 ;
119
119
width : 100% ;
120
120
z-index : 1 ;
121
+ padding : 0 1rem ;
121
122
}
122
123
123
124
.search-results-list {
You can’t perform that action at this time.
0 commit comments