fix(ui): hide scroll loading indicator when no more content to load
This commit is contained in:
@@ -45,8 +45,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% if has_more %}
|
||||||
<div id="scroll-sentinel" style="height:1px"></div>
|
<div id="scroll-sentinel" style="height:1px"></div>
|
||||||
<div id="scroll-loading" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
<div id="scroll-loading" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="empty-state">
|
<div class="empty-state">
|
||||||
<p>{{ 'index.empty'|t(lang) }}</p>
|
<p>{{ 'index.empty'|t(lang) }}</p>
|
||||||
|
|||||||
@@ -86,8 +86,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if sent_visible|length > 19 %}
|
||||||
<div id="scroll-sentinel-sent" style="height:1px"></div>
|
<div id="scroll-sentinel-sent" style="height:1px"></div>
|
||||||
<div id="scroll-loading-sent" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
<div id="scroll-loading-sent" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tab-received" class="tab-panel" style="display:none">
|
<div id="tab-received" class="tab-panel" style="display:none">
|
||||||
@@ -135,8 +137,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if received_visible|length > 19 %}
|
||||||
<div id="scroll-sentinel-received" style="height:1px"></div>
|
<div id="scroll-sentinel-received" style="height:1px"></div>
|
||||||
<div id="scroll-loading-received" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
<div id="scroll-loading-received" style="text-align:center;padding:1rem;color:var(--text-muted);display:none">⏳</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user