]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5214'
authorTom Hughes <tom@compton.nu>
Sun, 15 Sep 2024 18:08:31 +0000 (19:08 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 15 Sep 2024 18:08:31 +0000 (19:08 +0100)
app/helpers/browse_helper.rb
app/views/changesets/_paging_nav.html.erb

index 5aef4e7ca72d4a8212662fabad966a62da1e6d3c..9ea38481137d77afeb46ccfe615860e4b2cecf24 100644 (file)
@@ -92,7 +92,7 @@ module BrowseHelper
     end
     link_classes = ["page-link", { "px-1" => width > max_width_for_default_padding }]
 
-    tag.ul :class => "pagination pagination-sm mb-1 ms-auto" do
+    tag.ul :class => "pagination pagination-sm mb-2" do
       pagination_items(pages, {}).each do |body, page_or_class|
         linked = !(page_or_class.is_a? String)
         link = if linked
index fbdf1d50773c1e1d728e1877c982efe3f5a8801c..0587382222de27d64af44dc64dbc04ffff8c1a03 100644 (file)
@@ -1,11 +1,9 @@
-<div class="d-flex flex-wrap gap-2">
-  <h4 class="fs-5 mb-0"><%= type_and_paginated_count(type, pages) %></h4>
-  <% if pages.page_count > 1 %>
-    <%= sidebar_classic_pagination(pages, "#{type}_page") do |page|
-          {
-            :title => type_and_paginated_count(type, pages, page),
-            :data => { :turbo => "true" }
-          }
-        end %>
-  <% end %>
-</div>
+<h4 class="fs-5"><%= type_and_paginated_count(type, pages) %></h4>
+<% if pages.page_count > 1 %>
+  <%= sidebar_classic_pagination(pages, "#{type}_page") do |page|
+        {
+          :title => type_and_paginated_count(type, pages, page),
+          :data => { :turbo => "true" }
+        }
+      end %>
+<% end %>