Commit 62c50261 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

feat: show searchbar on tablet size (#4484)

show searchbar on tablet size
Co-authored-by: default avatarCharlie <charlie@uniswap.org>
parent fdbe4b8f
...@@ -34,7 +34,6 @@ export const logo = style([ ...@@ -34,7 +34,6 @@ export const logo = style([
export const baseContainer = style([ export const baseContainer = style([
sprinkles({ sprinkles({
display: 'flex',
alignItems: 'center', alignItems: 'center',
}), }),
]) ])
...@@ -51,6 +50,7 @@ export const baseMobileContainer = style([ ...@@ -51,6 +50,7 @@ export const baseMobileContainer = style([
export const baseSideContainer = style([ export const baseSideContainer = style([
baseContainer, baseContainer,
sprinkles({ sprinkles({
display: 'flex',
width: 'full', width: 'full',
flex: '1', flex: '1',
flexShrink: '2', flexShrink: '2',
......
...@@ -45,9 +45,14 @@ const MobileNavbar = () => { ...@@ -45,9 +45,14 @@ const MobileNavbar = () => {
</Box> </Box>
<ChainSwitcher leftAlign={true} /> <ChainSwitcher leftAlign={true} />
</Box> </Box>
<Box className={styles.middleContainer} display={{ sm: 'none', md: 'flex' }}>
<SearchBar />
</Box>
<Box className={styles.rightSideMobileContainer}> <Box className={styles.rightSideMobileContainer}>
<Row gap="16"> <Row gap="16">
<SearchBar /> <Box display={{ sm: 'flex', md: 'none' }}>
<SearchBar />
</Box>
<MobileSideBar /> <MobileSideBar />
</Row> </Row>
</Box> </Box>
...@@ -100,7 +105,7 @@ const Navbar = () => { ...@@ -100,7 +105,7 @@ const Navbar = () => {
</MenuItem> </MenuItem>
</Row> </Row>
</Box> </Box>
<Box className={styles.middleContainer}> <Box className={styles.middleContainer} display="flex">
<SearchBar /> <SearchBar />
</Box> </Box>
<Box className={styles.rightSideContainer}> <Box className={styles.rightSideContainer}>
......
...@@ -335,7 +335,7 @@ export const SearchBar = () => { ...@@ -335,7 +335,7 @@ export const SearchBar = () => {
borderRadius={isOpen ? undefined : '12'} borderRadius={isOpen ? undefined : '12'}
borderTopRightRadius={isOpen && !isMobile ? '12' : undefined} borderTopRightRadius={isOpen && !isMobile ? '12' : undefined}
borderTopLeftRadius={isOpen && !isMobile ? '12' : undefined} borderTopLeftRadius={isOpen && !isMobile ? '12' : undefined}
display={{ sm: isOpen ? 'flex' : 'none', xxl: 'flex' }} display={{ sm: isOpen ? 'flex' : 'none', md: 'flex' }}
justifyContent={isOpen || phase1Flag === NftVariant.Enabled ? 'flex-start' : 'center'} justifyContent={isOpen || phase1Flag === NftVariant.Enabled ? 'flex-start' : 'center'}
onFocus={() => !isOpen && toggleOpen()} onFocus={() => !isOpen && toggleOpen()}
onClick={() => !isOpen && toggleOpen()} onClick={() => !isOpen && toggleOpen()}
...@@ -359,7 +359,7 @@ export const SearchBar = () => { ...@@ -359,7 +359,7 @@ export const SearchBar = () => {
value={searchValue} value={searchValue}
/> />
</Row> </Row>
<Box display={{ sm: isOpen ? 'none' : 'flex', xxl: 'none' }}> <Box display={{ sm: isOpen ? 'none' : 'flex', md: 'none' }}>
<NavIcon onClick={toggleOpen}> <NavIcon onClick={toggleOpen}>
<NavMagnifyingGlassIcon width={28} height={28} /> <NavMagnifyingGlassIcon width={28} height={28} />
</NavIcon> </NavIcon>
......
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