]> git.openstreetmap.org Git - rails.git/commitdiff
Use grid for dashboard map popups
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Nov 2021 15:19:31 +0000 (15:19 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Nov 2021 15:19:31 +0000 (15:19 +0000)
app/assets/stylesheets/leaflet-all.scss
app/views/dashboards/_popup.html.erb

index 34e3d094e25941b56c872ea4372e1dec06a83099..d12c61f77766d4aa635397db6907871164618a28 100644 (file)
@@ -15,9 +15,6 @@ div.leaflet-marker-icon.location-filter.move-marker {
 
 /* 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: 0 !important;
index a643b5c90b932ee447818a304798a700ad0b94dc..8a8a949595287390c1b39252b44f1331ca8ec132 100644 (file)
@@ -1,5 +1,9 @@
-<div class="user_popup">
-  <%= user_thumbnail popup %>
-  <p><%= t(".#{type}") %></p>
-  <p><%= link_to popup.display_name, user_path(popup) %></p>
+<div class="user_popup row no-gutters mx-1">
+  <div class="col-auto mx-1">
+    <%= user_thumbnail popup, :class => "user_thumbnail_no_margins" %>
+  </div>
+  <div class="col mx-1">
+    <p><%= t(".#{type}") %></p>
+    <p><%= link_to popup.display_name, user_path(popup) %></p>
+  </div>
 </div>