diff --git a/static/js/utils/infiniteScroll.js b/static/js/utils/infiniteScroll.js index c0c566a5..448ede8d 100644 --- a/static/js/utils/infiniteScroll.js +++ b/static/js/utils/infiniteScroll.js @@ -22,15 +22,8 @@ export function initializeInfiniteScroll() { } else { const sentinel = document.createElement('div'); sentinel.id = 'scroll-sentinel'; - sentinel.style.height = '20px'; // Increase height a bit - sentinel.style.width = '100%'; // Ensure full width - sentinel.style.position = 'relative'; // Ensure it's in the normal flow + sentinel.style.height = '10px'; document.getElementById('loraGrid').appendChild(sentinel); state.observer.observe(sentinel); } - - // Force layout recalculation - setTimeout(() => { - window.dispatchEvent(new Event('resize')); - }, 100); -} \ No newline at end of file +} \ No newline at end of file diff --git a/templates/loras.html b/templates/loras.html index 97edfeca..6ac83c36 100644 --- a/templates/loras.html +++ b/templates/loras.html @@ -85,7 +85,7 @@ {% else %} {% include 'components/controls.html' %} -