From: Andy Allan Date: Wed, 3 Nov 2021 17:33:01 +0000 (+0000) Subject: Remove the contact-activity class X-Git-Tag: live~1454^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/826a864e6c3e1f733b74d6d5aacf6b3253507a75 Remove the contact-activity class The margin-top is better replaced with a bottom margin on the preceding element, and the width is unnecessary in the grid layout. --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index fdff4ebfc..ac55dc821 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1092,13 +1092,6 @@ tr.turn:hover { } } -/* Rules for the user profile page */ - -.contact-activity { - margin-top: $lineheight; - width: 100%; -} - /* Rules for the user map */ .content_map .leaflet-popup-content { diff --git a/app/views/dashboards/_contact.html.erb b/app/views/dashboards/_contact.html.erb index 7614c0c4d..cf1866cc9 100644 --- a/app/views/dashboards/_contact.html.erb +++ b/app/views/dashboards/_contact.html.erb @@ -4,7 +4,7 @@ :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"), :description => render(:partial => "popup", :object => contact, :locals => { :type => type }) } %> -<%= tag.div :class => "contact-activity clearfix row", :data => { :user => user_data } do %> +<%= tag.div :class => "clearfix row", :data => { :user => user_data } do %>
<%= user_thumbnail contact, :class => "user_thumbnail_no_margins" %>
diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index 9aa4abed4..0f04dafb9 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -32,7 +32,7 @@ <% if friends.empty? %> <%= t ".no friends" %> <% else %> -