Commit d2afd71c authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: change from flex to inline to fix safari bugs (#4559)

change from flex to inline to fix safari bugs
Co-authored-by: default avatarCharlie <charlie@uniswap.org>
parent bad1ce26
...@@ -27,6 +27,7 @@ export const searchBarContainer = style([ ...@@ -27,6 +27,7 @@ export const searchBarContainer = style([
right: '0', right: '0',
top: '0', top: '0',
zIndex: '3', zIndex: '3',
display: 'inline-block',
}), }),
{ {
'@media': { '@media': {
......
...@@ -332,7 +332,6 @@ export const SearchBar = () => { ...@@ -332,7 +332,6 @@ export const SearchBar = () => {
const placeholderText = phase1Flag === NftVariant.Enabled ? t`Search tokens and NFT collections` : t`Search tokens` const placeholderText = phase1Flag === NftVariant.Enabled ? t`Search tokens and NFT collections` : t`Search tokens`
return ( return (
<>
<Box position="relative"> <Box position="relative">
<Box <Box
position={isOpen ? { sm: 'fixed', md: 'absolute' } : 'static'} position={isOpen ? { sm: 'fixed', md: 'absolute' } : 'static'}
...@@ -388,8 +387,7 @@ export const SearchBar = () => { ...@@ -388,8 +387,7 @@ export const SearchBar = () => {
/> />
))} ))}
</Box> </Box>
</Box>
{isOpen && <Overlay />} {isOpen && <Overlay />}
</> </Box>
) )
} }
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