@@ -61,7 +61,7 @@ interface MapProps {
61
61
function Map ( { flights, airports, isDarkMode } : MapProps ) {
62
62
const [ hoveredFlight , setHoveredFlight ] = useState < number | null > ( null ) ;
63
63
return (
64
- < MapContainer center = { [ 20 , 0 ] } zoom = { 2 } className = "absolute inset-0 w -full h -full" >
64
+ < MapContainer center = { [ 20 , 0 ] } zoom = { 2 } className = "absolute inset-0 h -full w -full" >
65
65
< TileLayer
66
66
url = { getTileUrl ( isDarkMode ) }
67
67
attribution = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
@@ -105,7 +105,7 @@ function Map({ flights, airports, isDarkMode }: MapProps) {
105
105
fillOpacity = { 1 }
106
106
>
107
107
< TooltipContainer
108
- className = "absolute inset-0 w -full h -full"
108
+ className = "absolute inset-0 h -full w -full"
109
109
direction = "auto"
110
110
offset = { [ 0 , - 5 ] }
111
111
opacity = { 1 }
@@ -141,9 +141,9 @@ export default function FlightMap({ flights, airlines, airports }: FlightMapProp
141
141
const filteredFlights = selectedAirline ? flights . filter ( ( flight ) => flight . airline === selectedAirline ) : flights ;
142
142
143
143
return (
144
- < div className = "w-full flex flex-col" >
144
+ < div className = "flex w-full flex-col" >
145
145
< div className = "p-4" >
146
- < div className = "container mx-auto flex flex-col sm:flex-row items-start sm:items-center justify-between space-y-4 sm:space-y-0 sm:space-x-4" >
146
+ < div className = "container mx-auto flex flex-col items-start justify-between space-y-4 sm:flex-row sm:items-center sm:space-x-4 sm:space-y-0 " >
147
147
< div className = "flex items-center space-x-4" >
148
148
< AirlineSelector
149
149
airlines = { airlines }
@@ -164,7 +164,7 @@ export default function FlightMap({ flights, airlines, airports }: FlightMapProp
164
164
</ div >
165
165
</ div >
166
166
</ div >
167
- < div className = "relative h-[60vh] w-full mt-4 rounded-lg overflow-hidden shadow-lg" >
167
+ < div className = "relative mt-4 h-[60vh] w-full overflow-hidden rounded-lg shadow-lg" >
168
168
< Map flights = { filteredFlights } airports = { airports } isDarkMode = { isDarkMode } />
169
169
</ div >
170
170
</ div >
0 commit comments