Skip to content

Commit

Permalink
fix: make title of sub-pages (faq, imprint, ...) clickable on mobile (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophWersal authored and onouv committed Nov 3, 2020
1 parent dcf1e64 commit 29bc206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/FixedSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const useStyles = makeStyles((theme) => ({
height: "64px",
display: "inline-flex",
alignItems: "center",
pointerEvents: "auto",
[theme.breakpoints.down("xs")]: {
left: "0px",
right: "48px", // right on the edge of the hamburger menu button
Expand Down
3 changes: 2 additions & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const useStyles = makeStyles((theme) => ({
// on mobile devices
backgroundColor: "transparent",
boxShadow: "none",
pointerEvents: "none",
},
},
title: {
Expand Down Expand Up @@ -183,7 +184,7 @@ export const NavBar = () => {
return (
<AppBar classes={{ root: classes.appBar }} style={{ height: 64, flex: "0 0 auto" }}>
<Toolbar className={classes.fullHeightToolbar}>
<Link to="/">
<Link to="/" style={{ pointerEvents: "auto" }}>
{!isMobile && ((Logo && <Logo />) || <img src={config.buildJSON.logoSrc} className={classes.logo} />)}
</Link>
{showSearch && <FixedSearch />}
Expand Down

0 comments on commit 29bc206

Please sign in to comment.