style: alle Icons Panels in gleiche Position bringen

This commit is contained in:
ISA
2025-09-16 11:20:49 +02:00
parent 1208024f76
commit 6bc2e16657
7 changed files with 11 additions and 50 deletions

View File

@@ -23,4 +23,4 @@ NEXT_PUBLIC_USE_MOCKS=true
# z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen # z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen
# basePath wird jetzt in public/config.json gepflegt # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.368 NEXT_PUBLIC_APP_VERSION=1.1.369

View File

@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=false
# basePath wird jetzt in public/config.json gepflegt # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.368 NEXT_PUBLIC_APP_VERSION=1.1.369

View File

@@ -1203,7 +1203,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
> >
<MapMarkerIcon className="h-8 w-8" /> <MapMarkerIcon className="h-8 w-8" />
</button> </button>
{overlay === "area" && <AreaDropdown onClose={() => setOverlay(null)} />}
{/*Lupe: Koordinatensuche ein-/ausblenden */} {/*Lupe: Koordinatensuche ein-/ausblenden */}
<button <button
onClick={() => setOverlay(prev => (prev === "coord" ? null : "coord"))} onClick={() => setOverlay(prev => (prev === "coord" ? null : "coord"))}
@@ -1267,6 +1266,8 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
/> />
</button> </button>
</div> </div>
{/* Marker/AreaDropdown Panel außerhalb der Button-Leiste platzieren, damit die Position mit den anderen Panels identisch ist */}
{overlay === "area" && <AreaDropdown onClose={() => setOverlay(null)} />}
{/* BaseMapPanel entfernt */} {/* BaseMapPanel entfernt */}
<CoordinatePopup isOpen={isPopupOpen} coordinates={currentCoordinates} onClose={closePopup} /> <CoordinatePopup isOpen={isPopupOpen} coordinates={currentCoordinates} onClose={closePopup} />

View File

@@ -54,8 +54,8 @@ const AreaDropdown = ({ onClose }) => {
}, [onClose]); }, [onClose]);
return ( return (
<div className="absolute top-16 right-3 z-[60]"> <div className="absolute top-16 right-3 w-72 z-50 bg-white rounded-lg shadow-md">
<div className="bg-white rounded-md shadow-lg p-3 border border-gray-200 min-w-[220px]"> <div className="flex flex-col gap-4 p-4">
<div className="text-sm font-semibold mb-2">Station wählen</div> <div className="text-sm font-semibold mb-2">Station wählen</div>
<select <select
onChange={handleChange} onChange={handleChange}

View File

@@ -275,48 +275,8 @@ function MapLayersControlPanel({ handlePolylineCheckboxChange }) {
//--------------------------- //---------------------------
return ( return (
<div <div className="absolute top-16 right-3 w-72 z-50 bg-white rounded-lg shadow-md">
id="mainDataSheet" <div id="mainDataSheet" className="flex flex-col gap-4 p-4">
className="absolute top-16 right-3 w-1/6 min-w-[300px] max-w-[200px] z-10 bg-white p-2 rounded-lg shadow-lg"
>
<div className="flex flex-col gap-4 p-4">
<div className="flex items-center justify-between space-x-2">
{/*
<select
onChange={handleAreaChange}
id="stationListing"
className="border-solid-1 p-2 rounded ml-1 font-semibold"
style={{ minWidth: "150px", maxWidth: "200px" }}
>
<option value="Station wählen">Station wählen</option>
{[
...new Map(
(GisStationsStaticDistrict.Points || [])
.filter(p => !!p.Area_Name)
.map(p => [p.Area_Name, p])
).values(),
].map(item => (
<option key={item.Area_Name} value={item.IdLD}>
{item.Area_Name}
</option>
))}
</select>
*/}
{/*
<div className="flex items-center space-x-2">
<EditModeToggle />
<img
src="/img/expand-icon.svg"
alt="Expand"
className="h-6 w-6 cursor-pointer"
onClick={handleIconClick}
/>
</div>
*/}
</div>
{/* Checkboxen mit Untermenüs */} {/* Checkboxen mit Untermenüs */}
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
{systemListing.map(system => ( {systemListing.map(system => (

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.368", "version": "1.1.369",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodemap", "name": "nodemap",
"version": "1.1.368", "version": "1.1.369",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.368", "version": "1.1.369",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",