var user = $(this).data('user');
if (user.lon && user.lat) {
L.marker([user.lat, user.lon], {icon: getUserIcon(user.icon)}).addTo(map)
- .bindPopup(user.description);
+ .bindPopup(user.description, {offset: L.point(-1, -20)});
}
});
}
background: #fff;
border-radius: 3px;
}
+
+/* Override some conflicting styles.
+ https://github.com/openstreetmap/openstreetmap-website/pull/121#issuecomment-10206946 */
+.leaflet-popup-content img.user_thumbnail {
+ max-width: 50px !important;
+}
+
+.user_popup p {
+ margin: 0px 2px 0px 55px !important;
+}