Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix search page reload when scrolling on android devices #1314

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions frontend/src/components/pages/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ export const SearchUI: React.FC<Props> = ({ language }) => {
id="search_resultMap"
className={cn(
'fixed inset-0 z-map left-full w-full transition-transform',
'desktop:flex desktop:z-content desktop:bottom-0 desktop:fixed desktop:left-auto desktop:right-0 desktop:w-1/2 desktop:top-headerAndFilterBar',
'desktop:z-content desktop:left-auto desktop:w-1/2 desktop:top-headerAndFilterBar',
mobileMapState === 'DISPLAYED'
? '-translate-x-full desktop:translate-x-0'
: 'translate-x-0',
? '-translate-x-full desktop:translate-x-0 h-auto'
: 'translate-x-0 h-screen desktop:h-auto',
)}
>
{isMapLoading && <div className="absolute bg-primary2 opacity-40 inset-0 z-map" />}
<Loader loaded={!isMapLoading} className="absolute inset-0 z-map" />
<Loader loaded={!isMapLoading} className="fixed inset-0 z-map" />
{isMapLoading && <div className="fixed bg-primary2 opacity-40 inset-0 z-map" />}
<SearchMapDynamicComponent
hasZoomControl={!isMobile}
onMove={handleMoveMap}
Expand Down
Loading