openvibers/openvibe.live Commits
Home: actually show the Load more buttons
Changes
@@@ -5130,7 +5130,7 @@ curl -s https://openvibe.media/live/@Goosely/chat-insight.json | jq ".chat_insig<script src="/live-notify.js?v=3" defer></script><script src="/js/ov-skeleton.js?v=1" defer></script><script src="/js/ov-odometer.js?v=3" defer></script>--<script src="/js/app.js?v=153" defer></script>++<script src="/js/app.js?v=154" defer></script><script src="/js/stream-player.js?v=22" defer></script><script src="/js/stream-pip.js?v=1" defer></script><script src="/js/chat-shared.js?v=3" defer></script>@@@ -2861,7 +2861,10 @@ function renderHomePagination(containerId, total, page, pageSize, setterName) {if (!el) return;const shown = page * pageSize;const left = Math.max(0, (total || 0) - shown);-- if (left <= 0) { el.innerHTML = ''; return; }++ // These containers ship with an inline display:none — the old pager unhid them itself, and++ // this one has to as well or the button renders into a hidden box and nobody ever sees it.++ if (left <= 0) { el.innerHTML = ''; el.style.display = 'none'; return; }++ el.style.display = 'block';const next = Math.min(left, pageSize);el.innerHTML = `<button type="button" class="home-load-more" onclick="${setterName}(${page + 1}, true)"><i class="fa-solid fa-arrow-down"></i>
@@ -5130,7 +5130,7 @@ curl -s https://openvibe.media/live/@Goosely/chat-insight.json | jq ".chat_insig
@@ -5130,7 +5130,7 @@ curl -s https://openvibe.media/live/@Goosely/chat-insight.json | jq ".chat_insig
<script src="/live-notify.js?v=3" defer></script>
<script src="/live-notify.js?v=3" defer></script>
<script src="/js/ov-skeleton.js?v=1" defer></script>
<script src="/js/ov-skeleton.js?v=1" defer></script>
<script src="/js/ov-odometer.js?v=3" defer></script>
<script src="/js/ov-odometer.js?v=3" defer></script>
-<script src="/js/app.js?v=153" defer></script>
+<script src="/js/app.js?v=154" defer></script>
<script src="/js/stream-player.js?v=22" defer></script>
<script src="/js/stream-player.js?v=22" defer></script>
<script src="/js/stream-pip.js?v=1" defer></script>
<script src="/js/stream-pip.js?v=1" defer></script>
<script src="/js/chat-shared.js?v=3" defer></script>
<script src="/js/chat-shared.js?v=3" defer></script>
@@ -2861,7 +2861,10 @@ function renderHomePagination(containerId, total, page, pageSize, setterName) {
@@ -2861,7 +2861,10 @@ function renderHomePagination(containerId, total, page, pageSize, setterName) {
if (!el) return;
if (!el) return;
const shown = page * pageSize;
const shown = page * pageSize;
const left = Math.max(0, (total || 0) - shown);
const left = Math.max(0, (total || 0) - shown);
- if (left <= 0) { el.innerHTML = ''; return; }
+ // These containers ship with an inline display:none — the old pager unhid them itself, and
+ // this one has to as well or the button renders into a hidden box and nobody ever sees it.
+ if (left <= 0) { el.innerHTML = ''; el.style.display = 'none'; return; }
+ el.style.display = 'block';
const next = Math.min(left, pageSize);
const next = Math.min(left, pageSize);
el.innerHTML = `<button type="button" class="home-load-more" onclick="${setterName}(${page + 1}, true)">
el.innerHTML = `<button type="button" class="home-load-more" onclick="${setterName}(${page + 1}, true)">
<i class="fa-solid fa-arrow-down"></i>
<i class="fa-solid fa-arrow-down"></i>