Skip to content

Commit a3f548a

Browse files
Fix map attributions position
1 parent 05f765a commit a3f548a

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

client/src/app/[locale]/globals.css

+3-5
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ body {
2121
}
2222
}
2323

24-
.mapboxgl-ctrl-top-left {
25-
position: absolute;
26-
bottom: 20px;
27-
left: 20px;
28-
width: 100svh;
24+
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
25+
transform: scale(0.9);
26+
margin: 0 0px 3px 0px;
2927
}

client/src/app/[locale]/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import "./globals.css";
21
import "mapbox-gl/dist/mapbox-gl.css";
2+
import "./globals.css";
33

44
import localFont from "next/font/local";
55

client/src/containers/map/controls/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Legends from "../legends";
33

44
const MapControlsContainer = () => {
55
return (
6-
<div className="absolute bottom-5 right-5 space-y-1.5">
6+
<div className="absolute bottom-6 right-5 space-y-1.5">
77
<MapZoomControl />
88
<Legends />
99
</div>

client/src/containers/map/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const Map = () => {
2121
}}
2222
minZoom={2}
2323
maxZoom={14}
24-
logoPosition="top-left"
24+
logoPosition="bottom-left"
2525
>
26-
<AttributionControl style={{ fontSize: "0.75rem" }} compact={true} position="top-left" />
26+
<AttributionControl style={{ fontSize: "10px" }} position="bottom-right" />
2727
<LayerManager />
2828
<Controls />
2929

0 commit comments

Comments
 (0)