]> git.openstreetmap.org Git - rails.git/commitdiff
Refactor paragraph margin to avoid custom css
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Sep 2021 13:29:15 +0000 (14:29 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Sep 2021 13:29:15 +0000 (14:29 +0100)
app/assets/stylesheets/common.scss
app/views/dashboards/show.html.erb

index 67f7be123568d9b07b71a638b6c8c4dea612ae18..924be765164f7cba37f5779d77277d1b9d66aedc 100644 (file)
@@ -1107,9 +1107,6 @@ tr.turn:hover {
 }
 
 .dashboards-show {
-  p#no_home_location {
-    margin: $lineheight;
-  }
   .user_thumbnail {
     margin-top: $lineheight/4;
     float: left;
index f5feb90379c1ec9a53f55f81dbaa6ea2183283e7..9aa4abed4606566547dd8ca6f3d5f564389f4fb0 100644 (file)
@@ -7,7 +7,7 @@
     <div class="col-md order-md-last">
       <% if @user.home_lat.nil? or @user.home_lon.nil? %>
         <div id="map" class="content_map">
-          <p id="no_home_location"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
+          <p class="m-3"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
         </div>
       <% else %>
         <% content_for :head do %>