- add coordinates in post_presenter - add map to the SPV if location is provided - add leaflet.js to render map and marker of position - make coordinates available in frontend - add map scss - make stream post location clickable and redirect to the SPV - prevent render map if no location data is provided - add tests for coordinates - use the leaflet gem instead of the JS assets (#5813)
13 lines
182 B
SCSS
13 lines
182 B
SCSS
#map {
|
|
height: 180px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.leaflet-bottom .leaflet-control {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.leaflet-right .leaflet-control {
|
|
margin-right: 0;
|
|
}
|