]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5929'
authorTom Hughes <tom@compton.nu>
Sun, 13 Apr 2025 14:26:43 +0000 (15:26 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Apr 2025 14:26:43 +0000 (15:26 +0100)
app/assets/stylesheets/common.scss
app/views/layouts/_content.html.erb

index 88a8047debee9156cb9333f8bee847ff61a8bf12..2cfd5eba732348b338be53952e627319efc59f5c 100644 (file)
@@ -683,9 +683,7 @@ tr.turn {
 /* Rules for non-map content pages */
 
 .content-inner {
-  position: relative;
   max-width: 960px;
-  margin: auto;
   padding: $lineheight;
 }
 
index 9e28c0771b867d49122a178f181aed49bbd962b3..7e7cd2cca67f7fea406eedfdda976c6d25df6494 100644 (file)
@@ -5,13 +5,13 @@
     <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
     <% if content_for? :heading %>
       <div class="content-heading bg-body-secondary border-bottom border-secondary-subtle">
-        <div class="content-inner <%= yield :heading_class %>">
+        <div class="content-inner position-relative m-auto <%= yield :heading_class %>">
           <%= yield :heading %>
         </div>
       </div>
     <% end %>
     <div class="content-body">
-      <div class="content-inner">
+      <div class="content-inner position-relative m-auto">
         <%= yield %>
       </div>
     </div>