From: Andy Allan Date: Wed, 15 Sep 2021 13:29:15 +0000 (+0100) Subject: Refactor paragraph margin to avoid custom css X-Git-Tag: live~2058^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/99abdeb683814e50fa36e61664fe548d4160ccad Refactor paragraph margin to avoid custom css --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 67f7be123..924be7651 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1107,9 +1107,6 @@ tr.turn:hover { } .dashboards-show { - p#no_home_location { - margin: $lineheight; - } .user_thumbnail { margin-top: $lineheight/4; float: left; diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index f5feb9037..9aa4abed4 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -7,7 +7,7 @@
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
-

<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>

+

<%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>

<% else %> <% content_for :head do %>