Skip to content

Commit

Permalink
Update mapbox-gl.css (#8227)
Browse files Browse the repository at this point in the history
When the map is inside a tag with `text-align: center` (or `right`), the map is not displayed properly. An easy fix is to add `text-align: left`.

Screenshot with `text-align: center`: https://i.imgur.com/t1XU5uw.png
  • Loading branch information
mc100s authored and mourner committed May 14, 2019
1 parent 5aff6b5 commit a561d0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/css/mapbox-gl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
overflow: hidden;
position: relative;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
text-align: left;
}

.mapboxgl-map:-webkit-full-screen {
Expand Down

0 comments on commit a561d0a

Please sign in to comment.