Skip to content

Commit 18f6e3a

Browse files
committed
task: RequestRidePlaceSearch styles migrated
1 parent 7b84791 commit 18f6e3a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

frontend/src/components/RiderComponents/RequestRidePlacesSearch.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState, useCallback, useEffect, useRef } from 'react';
22
import { TextField, Paper, CircularProgress } from '@mui/material';
3-
import styles from './requestridedialog.module.css';
43

54
interface RequestRidePlacesSearchProps {
65
onAddressSelect: (address: string, lat: number, lng: number) => void;
@@ -111,7 +110,7 @@ const RequestRidePlacesSearch: React.FC<RequestRidePlacesSearchProps> = ({
111110
);
112111

113112
return (
114-
<div className={styles.placesSearch}>
113+
<div className="relative w-full mb-4">
115114
{/* Hidden map div for PlacesService */}
116115
<div ref={mapDivRef} style={{ display: 'none' }} />
117116

@@ -139,11 +138,14 @@ const RequestRidePlacesSearch: React.FC<RequestRidePlacesSearchProps> = ({
139138
</form>
140139

141140
{results.length > 0 && (
142-
<Paper className={styles.resultsContainer} elevation={3}>
141+
<Paper
142+
className="absolute top-full left-0 right-0 z-1000 mt-1 max-h-50 overflow-y-auto"
143+
elevation={3}
144+
>
143145
{results.map((place, index) => (
144146
<div
145147
key={index}
146-
className={styles.resultItem}
148+
className="px-4 py-2 cursor-pointer border-b border-[#ddd] hover:bg-black/4"
147149
onClick={() => handleSelect(place)}
148150
>
149151
{place.formatted_address || place.name}

0 commit comments

Comments
 (0)