Skip to content

Commit

Permalink
Prevent tile map from overlapping legend on small screens (#472)
Browse files Browse the repository at this point in the history
Increase tile map's top margin to prevent it from overlapping the legend.
  • Loading branch information
contolini committed Oct 10, 2023
1 parent 0d65c7f commit 0f04731
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Map/TileChartMap/TileMap/index.js
Expand Up @@ -458,11 +458,11 @@ class TileMap {

// to adjust for legend height
const mapBreakpoints = [
{ width: 700, legendHeight: 15 },
{ width: 580, legendHeight: 20 },
{ width: 500, legendHeight: 30 },
{ width: 400, legendHeight: 40 },
{ width: 370, legendHeight: 55 },
{ width: 700, legendHeight: 20 },
{ width: 580, legendHeight: 25 },
{ width: 500, legendHeight: 35 },
{ width: 400, legendHeight: 60 },
{ width: 370, legendHeight: 70 },
];

let legendHeight = 10;
Expand Down

0 comments on commit 0f04731

Please sign in to comment.