Skip to content

Commit

Permalink
MapLegend responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaudv committed Nov 2, 2024
1 parent 4da6771 commit ed3c7b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ const LeafletMap: FC<LeafletMapProps> = ({ isFullPageMap, className }) => {
const [flights, setFlights] = useState<TelexConnection[]>([]);

const MapLegend = () => (
<div className="leaflet-bottom leaflet-left hidden lg:block">
<div className="leaflet-bottom leaflet-left">
<div className="leaflet-control">
<div className="bg-light p-4 text-secondary font-mono">
<span className="flex items-center gap-x-4">
<span className="items-center inline-flex gap-x-2 mr-4 xl:flex xl:gap-x-4 xl:mr-0">
<img className="inline" src="/meta/aircraft-icon-a32nx.png" style={{ height: 28, width: 28 }} />
<h4>FlyByWire A32NX</h4>
<h4><span className="hidden lg:inline">FlyByWire </span>A32NX</h4>
</span>
<span className="flex items-center gap-x-4">
<span className="items-center inline-flex gap-x-2 mr-4 xl:flex xl:gap-x-4 xl:mr-0">
<img className="inline" src="/meta/aircraft-icon-a380x.png" style={{ height: 28, width: 28 }} />
<h4>FlyByWire A380X</h4>
<h4><span className="hidden lg:inline">FlyByWire </span>A380X</h4>
</span>
<span className="flex items-center gap-x-4">
<span className="items-center inline-flex gap-x-2 mr-4 xl:flex xl:gap-x-4 xl:mr-0">
<img className="inline" src="/meta/aircraft-icon.png" style={{ height: 28, width: 28 }} />
<h4>Others</h4>
</span>
Expand Down

0 comments on commit ed3c7b5

Please sign in to comment.