From 733e7f0b098717372170a5a5bd364efd1068060e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 25 Mar 2025 14:07:16 -0400 Subject: [PATCH] Load past activity when collections list is quite long ref: https://37s.fizzy.37signals.com/buckets/693169850/bubbles/999008733 This moves the "fetch-on-visible" link to right after the "div#activity" to which it will append, so that it immediately triggers if the first day's grid is short. The link previously was at the end of the page, meaning that a long list of Collections would push it out of the viewport, requiring a scroll before loading the next day. --- app/views/events/index.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 2922ccbd7..ad5637247 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -22,6 +22,7 @@
<%= render "events/day", activity_day: @activity_day, next_day: @next_day, events: @events %>
+ <%= event_next_page_link(@next_day) %>
@@ -49,5 +50,3 @@
- -<%= event_next_page_link(@next_day) %>