diff --git a/client/src/components/Planner/LocationSelect.tsx b/client/src/components/Planner/LocationSelect.tsx index 502e0343c..5eb0e9c9a 100644 --- a/client/src/components/Planner/LocationSelect.tsx +++ b/client/src/components/Planner/LocationSelect.tsx @@ -1,5 +1,5 @@ import { useEffect, useId, useRef, useState } from 'react' -import { MapPin } from 'lucide-react' +import { MapPin, Search } from 'lucide-react' import { mapsApi } from '../../api/client' import { useTranslation } from '../../i18n' import { useLocationBias } from '../../hooks/useLocationBias' @@ -21,6 +21,8 @@ interface Props { ariaLabel?: string /** Announces the field as a combobox and says "nothing found" or an error in its list. */ showSearchStatus?: boolean + /** Floats over a map as a frosted pill, like the map controls. */ + floating?: boolean style?: React.CSSProperties /** * The trip's own places, offered while the field is empty or holds fewer than three @@ -30,7 +32,7 @@ interface Props { places?: LocationPoint[] } -export default function LocationSelect({ value, onChange, placeholder, ariaLabel, showSearchStatus = false, style, places }: Props) { +export default function LocationSelect({ value, onChange, placeholder, ariaLabel, showSearchStatus = false, floating = false, style, places }: Props) { const { t, locale } = useTranslation() const placeLang = usePlaceLanguage() // Ohne Reisekontext ist der Hinweis leer, und die Suche laeuft wie bisher. @@ -137,7 +139,10 @@ export default function LocationSelect({ value, onChange, placeholder, ariaLabel return (