From: Anton Khorev Date: Thu, 25 Apr 2024 01:48:26 +0000 (+0300) Subject: Use bindPopup options to set min width of user popup X-Git-Tag: live~606^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/671bb76f05c926d700520a73fd8598ce062385aa Use bindPopup options to set min width of user popup --- diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 146d876f7..495470f2f 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -121,7 +121,7 @@ $(document).ready(function () { var user = $(this).data("user"); if (user.lon && user.lat) { L.marker([user.lat, user.lon], { icon: OSM.getUserIcon(user.icon) }).addTo(map) - .bindPopup(user.description); + .bindPopup(user.description, { minWidth: 200 }); } }); } diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index d3399420b..10dbf9413 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -769,7 +769,6 @@ tr.turn { /* Rules for user popups on maps */ .user_popup { - min-width: 200px; p { padding: 0 0 5px 0; margin: 0 0 0 60px;