From: Andy Allan Date: Wed, 10 Nov 2021 15:19:31 +0000 (+0000) Subject: Use grid for dashboard map popups X-Git-Tag: live~2324^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/dc67e54958c50301cd0b8b0ada72936a4ae0b0f2 Use grid for dashboard map popups --- diff --git a/app/assets/stylesheets/leaflet-all.scss b/app/assets/stylesheets/leaflet-all.scss index 34e3d094e..d12c61f77 100644 --- a/app/assets/stylesheets/leaflet-all.scss +++ b/app/assets/stylesheets/leaflet-all.scss @@ -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; diff --git a/app/views/dashboards/_popup.html.erb b/app/views/dashboards/_popup.html.erb index a643b5c90..8a8a94959 100644 --- a/app/views/dashboards/_popup.html.erb +++ b/app/views/dashboards/_popup.html.erb @@ -1,5 +1,9 @@ -
- <%= user_thumbnail popup %> -

<%= t(".#{type}") %>

-

<%= link_to popup.display_name, user_path(popup) %>

+
+
+ <%= user_thumbnail popup, :class => "user_thumbnail_no_margins" %> +
+
+

<%= t(".#{type}") %>

+

<%= link_to popup.display_name, user_path(popup) %>

+