]> git.openstreetmap.org Git - rails.git/commitdiff
Adjust sizes of changeset element headers/pagination
authorAnton Khorev <tony29@yandex.ru>
Tue, 3 Oct 2023 03:07:34 +0000 (06:07 +0300)
committerAnton Khorev <tony29@yandex.ru>
Thu, 16 Nov 2023 10:21:14 +0000 (13:21 +0300)
app/views/browse/_paging_nav.html.erb
lib/classic_pagination/pagination_helper.rb

index 02a7aa2c8e31c58f111d797152ccdb32ce55c21f..1f4cbee85e8a8af148b08a720c272db7e34481c6 100644 (file)
@@ -1,9 +1,7 @@
-<div class="row">
-  <div class="col">
-    <h4><%= heading %></h4>
-  </div>
+<div class="d-flex flex-wrap gap-2">
+  <h4 class="fs-5 mb-0"><%= heading %></h4>
   <% if pages.page_count > 1 %>
-    <div class="col-auto">
+    <div class="ms-auto">
       <%= raw pagination_links_bootstrap(pages, {}) { |n| url_for(page_param => n) } %>
     </div>
   <% end %>
index 4c233e0b5a70d171440d02f2d9c66949c83a2244..3ff7fbf4e24bbc5f167a4b471082f8d43ba527cc 100644 (file)
@@ -148,7 +148,7 @@ module ActionView
 
         html = ""
 
-        html << "<ul class='pagination pagination-sm'>"
+        html << "<ul class='pagination pagination-sm mb-1'>"
 
         if always_show_anchors && !(wp_first = window_pages[0]).first?
           html << bootstrap_page_item_link(first.number.to_s, yield(first.number))