Skip to content

Commit 8c450f7

Browse files
author
Kayla Wilkins
committed
adjustments to location of pinning, padding
1 parent 8b6f73b commit 8c450f7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/2_molecules/search-header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class SearchHeader extends React.Component {
2222
handleScroll() {
2323
if (window.innerWidth >= 640) {
2424
this.setState({ searchIsFixed: false });
25-
} else if (window.scrollY === 0 && this.state.searchIsFixed === true) {
25+
} else if (window.scrollY <= 30 && this.state.searchIsFixed === true) {
2626
this.setState({ searchIsFixed: false });
27-
} else if (window.scrollY !== 0 && this.state.searchIsFixed !== true) {
27+
} else if (window.scrollY > 30 && this.state.searchIsFixed !== true) {
2828
this.setState({ searchIsFixed: true });
2929
}
3030
}

src/css/components/4_pages/api-page.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
left: 0;
119119
width: 100%;
120120
z-index: 1;
121+
padding: 0 1rem;
121122
}
122123

123124
.search-results-list {

0 commit comments

Comments
 (0)