diff --git a/backend/tests/test_sprint186_map_first_geographic_explorer.py b/backend/tests/test_sprint186_map_first_geographic_explorer.py index 0ebe67f9..d75f1367 100644 --- a/backend/tests/test_sprint186_map_first_geographic_explorer.py +++ b/backend/tests/test_sprint186_map_first_geographic_explorer.py @@ -32,6 +32,7 @@ def test_map_first_explorer_is_the_default_product_flow() -> None: def test_map_rectangle_drag_is_wired_to_automatic_analysis() -> None: workspace = read("frontend/src/components/map/MapWorkspace.tsx") geomap = read("frontend/src/components/GeoMap.tsx") + styles = read("frontend/src/styles/app.css") assert "onMapBboxPreview={handleMapBboxPreview}" in workspace assert "onMapBboxSelect={handleMapBboxSelect}" in workspace @@ -45,6 +46,9 @@ def test_map_rectangle_drag_is_wired_to_automatic_analysis() -> None: assert "fitDataOnChangeRef.current" in geomap assert "map.fitBounds(bounds, { padding: 40, duration: 0 })" in geomap assert "resizeObserver.disconnect()" in geomap + assert ".geo-map-canvas .map-container" in styles + assert "position: absolute;" in styles + assert "inset: 0;" in styles def test_dataset_detail_responses_cannot_overwrite_the_latest_map_layer() -> None: diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index 1a8383fc..d7fef336 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -5736,8 +5736,10 @@ section { } .geo-map-canvas .map-container { - width: 100%; - height: 100%; + position: absolute; + inset: 0; + width: auto; + height: auto; min-height: 30rem; border: 0; border-radius: 0;