Commit 2a51f536 authored by tom's avatar tom

fix positioning of search bar on mobile

parent 46508f65
......@@ -126,8 +126,7 @@ const SearchBar = ({ isHomepage }: Props) => {
open={ open && (searchTerm.trim().length > 0 || recentSearchKeywords.length > 0) }
autoFocus={ false }
onOpenChange={ handleOpenChange }
// TODO @tom2drum fix positioning on mobile
positioning={{ offset: isMobile && !isHomepage ? { mainAxis: -4, crossAxis: 12 } : { mainAxis: 8, crossAxis: 0 } }}
positioning={{ offset: isMobile && !isHomepage ? { mainAxis: 46, crossAxis: 12 } : { mainAxis: 8, crossAxis: 0 } }}
lazyMount
closeOnInteractOutside={ false }
>
......
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