Merge pull request #120 from WardPearce/fix/channel-loading
Fix channel infinite loading
This commit is contained in:
@@ -24,6 +24,11 @@
|
||||
async function loadMore(event: InfiniteEvent) {
|
||||
if (typeof displayContent === 'undefined') return;
|
||||
|
||||
if (typeof displayContent.continuation === 'undefined') {
|
||||
event.detail.complete();
|
||||
return;
|
||||
}
|
||||
|
||||
const newContent = await getChannelContent(data.channel.authorId, {
|
||||
type: tab,
|
||||
continuation: displayContent.continuation
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
margin-right: 5px !important;
|
||||
}
|
||||
|
||||
.infinite-status-prompt {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 580px) {
|
||||
main {
|
||||
padding-left: 0.1em !important;
|
||||
|
||||
Reference in New Issue
Block a user