style: hide legacy icons in mobile layout and center search bar

main
Josue 4 years ago committed by Tsu-ba-me
parent 10650e8bb2
commit 7209d47aa2
  1. 15
      striker-ui/components/Header.tsx

@ -22,6 +22,17 @@ const useStyles = makeStyles((theme) =>
barElement: { barElement: {
padding: 0, padding: 0,
}, },
icons: {
[theme.breakpoints.down('sm')]: {
display: 'none',
},
},
searchBar: {
[theme.breakpoints.down('sm')]: {
flexGrow: 1,
paddingLeft: '15vw',
},
},
}), }),
); );
@ -40,10 +51,10 @@ const Header = (): JSX.Element => {
<img alt="" src="/pngs/logo.png" width="160" height="40" /> <img alt="" src="/pngs/logo.png" width="160" height="40" />
</Button> </Button>
</Box> </Box>
<Box className={classes.barElement}> <Box className={`${classes.barElement} ${classes.searchBar}`}>
<input className={classes.input} list="search-suggestions" /> <input className={classes.input} list="search-suggestions" />
</Box> </Box>
<Box className={classes.barElement}> <Box className={`${classes.barElement} ${classes.icons}`}>
{ICONS.map( {ICONS.map(
(icon): JSX.Element => ( (icon): JSX.Element => (
<img <img

Loading…
Cancel
Save