Skip to content

Commit

Permalink
Fix map attributions position
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Nov 6, 2024
1 parent 05f765a commit a3f548a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions client/src/app/[locale]/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ body {
}
}

.mapboxgl-ctrl-top-left {
position: absolute;
bottom: 20px;
left: 20px;
width: 100svh;
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
transform: scale(0.9);
margin: 0 0px 3px 0px;
}
2 changes: 1 addition & 1 deletion client/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./globals.css";
import "mapbox-gl/dist/mapbox-gl.css";
import "./globals.css";

import localFont from "next/font/local";

Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/map/controls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Legends from "../legends";

const MapControlsContainer = () => {
return (
<div className="absolute bottom-5 right-5 space-y-1.5">
<div className="absolute bottom-6 right-5 space-y-1.5">
<MapZoomControl />
<Legends />
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/containers/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const Map = () => {
}}
minZoom={2}
maxZoom={14}
logoPosition="top-left"
logoPosition="bottom-left"
>
<AttributionControl style={{ fontSize: "0.75rem" }} compact={true} position="top-left" />
<AttributionControl style={{ fontSize: "10px" }} position="bottom-right" />
<LayerManager />
<Controls />

Expand Down

0 comments on commit a3f548a

Please sign in to comment.