Commit a650807c authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: correctly center navbar els (#5676)

parent 6efd7ca7
...@@ -101,7 +101,7 @@ const Navbar = () => { ...@@ -101,7 +101,7 @@ const Navbar = () => {
return ( return (
<> <>
<Nav> <Nav>
<Box display="flex" height="full" flexWrap="nowrap" alignItems="center"> <Box display="flex" height="full" flexWrap="nowrap">
<Box className={styles.leftSideContainer}> <Box className={styles.leftSideContainer}>
<Box className={styles.logoContainer}> <Box className={styles.logoContainer}>
<UniIcon <UniIcon
...@@ -114,7 +114,7 @@ const Navbar = () => { ...@@ -114,7 +114,7 @@ const Navbar = () => {
/> />
</Box> </Box>
{!isNftPage && ( {!isNftPage && (
<Box display={{ sm: 'flex', lg: 'none' }} alignSelf="center"> <Box display={{ sm: 'flex', lg: 'none' }}>
<ChainSelector leftAlign={true} /> <ChainSelector leftAlign={true} />
</Box> </Box>
)} )}
...@@ -122,7 +122,7 @@ const Navbar = () => { ...@@ -122,7 +122,7 @@ const Navbar = () => {
<PageTabs /> <PageTabs />
</Row> </Row>
</Box> </Box>
<Box className={styles.middleContainer} alignItems="flex-start"> <Box className={styles.searchContainer}>
<SearchBar /> <SearchBar />
</Box> </Box>
<Box className={styles.rightSideContainer}> <Box className={styles.rightSideContainer}>
......
...@@ -7,7 +7,6 @@ export const logoContainer = style([ ...@@ -7,7 +7,6 @@ export const logoContainer = style([
sprinkles({ sprinkles({
display: 'flex', display: 'flex',
marginRight: { sm: '12', xxl: '20' }, marginRight: { sm: '12', xxl: '20' },
alignItems: 'center',
cursor: 'pointer', cursor: 'pointer',
}), }),
]) ])
...@@ -31,16 +30,19 @@ export const baseSideContainer = style([ ...@@ -31,16 +30,19 @@ export const baseSideContainer = style([
export const leftSideContainer = style([ export const leftSideContainer = style([
baseSideContainer, baseSideContainer,
sprinkles({ sprinkles({
alignItems: 'center',
justifyContent: 'flex-start', justifyContent: 'flex-start',
}), }),
]) ])
export const middleContainer = style([ export const searchContainer = style([
sprinkles({ sprinkles({
flex: '1', flex: '1',
flexShrink: '1', flexShrink: '1',
justifyContent: { lg: 'flex-end', xl: 'center' }, justifyContent: { lg: 'flex-end', xl: 'center' },
display: { sm: 'none', xl: 'flex' }, display: { sm: 'none', xl: 'flex' },
alignSelf: 'center',
height: '48',
alignItems: 'flex-start', alignItems: 'flex-start',
}), }),
]) ])
...@@ -48,6 +50,7 @@ export const middleContainer = style([ ...@@ -48,6 +50,7 @@ export const middleContainer = style([
export const rightSideContainer = style([ export const rightSideContainer = style([
baseSideContainer, baseSideContainer,
sprinkles({ sprinkles({
alignItems: 'center',
justifyContent: 'flex-end', justifyContent: 'flex-end',
}), }),
]) ])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment