Skip to content

Commit a40aaa1

Browse files
author
Lewis Youl
committed
fix: increase infinite scroll offset
1 parent 58e1d91 commit a40aaa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/javascript/controllers/infinite_scroll_window_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class extends Controller {
5858
const html = document.documentElement
5959
const height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight)
6060

61-
return (window.pageYOffset >= (height - window.innerHeight - 200))
61+
return (window.pageYOffset >= (height - window.innerHeight - 600))
6262
}
6363

6464
get nextPageAnchor() {

app/views/snippets/_snippet_preview.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222

2323
<div class="flex mt-4 mb-3 justify-between">
24-
<div>
24+
<div class="flex items-center">
2525
<h5 class="m-0"><%= snippet.description %></h5>
2626
</div>
2727

0 commit comments

Comments
 (0)