From 99abdeb683814e50fa36e61664fe548d4160ccad Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Sep 2021 14:29:15 +0100 Subject: [PATCH] Refactor paragraph margin to avoid custom css --- app/assets/stylesheets/common.scss | 3 --- app/views/dashboards/show.html.erb | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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 %> -- 2.43.2