adjusted design

main
Inga 🏳‍🌈 1 year ago
parent 89643d7f4d
commit 1d508a8c07
  1. 3
      src/routePlanner/index.tsx
  2. 3
      src/routePlanner/markers.tsx
  3. 8
      src/routePlanner/style.css

@ -15,6 +15,9 @@ export const RoutePlanner = () => {
return ( return (
<section class="route-planner"> <section class="route-planner">
<section class="header">
<h2>Route builder</h2>
</section>
<section class="markers"> <section class="markers">
<MarkersComponent <MarkersComponent
onMarkersReorder={reorderMarkers} onMarkersReorder={reorderMarkers}

@ -34,8 +34,6 @@ export const MarkersComponent = ({
}, [listContainerRef, markers, onMarkersReorder]); }, [listContainerRef, markers, onMarkersReorder]);
return ( return (
<>
<h3>Markers</h3>
<ol ref={listContainerRef}> <ol ref={listContainerRef}>
{markers.map((marker, i) => ( {markers.map((marker, i) => (
<MarkerComponent <MarkerComponent
@ -46,6 +44,5 @@ export const MarkersComponent = ({
/> />
))} ))}
</ol> </ol>
</>
); );
}; };

@ -4,12 +4,17 @@ section.route-planner {
column-gap: 1rem; column-gap: 1rem;
row-gap: 1rem; row-gap: 1rem;
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
grid-template-rows: 1fr min-content; grid-template-rows: min-content 1fr min-content;
grid-template-areas: grid-template-areas:
"header map"
"markers map" "markers map"
"export map"; "export map";
} }
section.route-planner > section.header {
grid-area: header;
}
section.route-planner > section.markers { section.route-planner > section.markers {
grid-area: markers; grid-area: markers;
} }
@ -83,6 +88,7 @@ section.route-planner .map-container .leaflet-tooltip-pane .text {
grid-template-columns: 1fr; grid-template-columns: 1fr;
grid-template-rows: 1fr min-content 2fr; grid-template-rows: 1fr min-content 2fr;
grid-template-areas: grid-template-areas:
"header"
"markers" "markers"
"export" "export"
"map"; "map";

Loading…
Cancel
Save