Skip to content

Commit

Permalink
Fix Seneca-CDOT#1420 - site crash when no post found
Browse files Browse the repository at this point in the history
  • Loading branch information
DukeManh committed Feb 17, 2021
1 parent d0f79a6 commit 023e1ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frontend/next/src/components/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const useStyles = makeStyles(() => ({
position: 'absolute',
top: 0,
},
anchorMobile: {
position: 'relative',
bottom: '71px',
},
}));

const SearchPage = () => {
Expand Down Expand Up @@ -47,6 +51,7 @@ const SearchPage = () => {
return (
<div>
<div className={classes.anchor} id="back-to-top-anchor" />
<div className={classes.anchorMobile} id="back-to-top-anchor-mobile" />
<SearchBar
text={text}
onTextChange={(value: string) => setText(value)}
Expand Down

0 comments on commit 023e1ba

Please sign in to comment.