mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): hide stuck Loading and Downloading board for pending comments
This commit is contained in:
@@ -1009,7 +1009,7 @@ const PostDesktop = ({
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{/* Virtuoso infinite scroll for post page view when there's more content to paginate */}
|
{/* Virtuoso infinite scroll for post page view when there's more content to paginate */}
|
||||||
{!isHidden && showAllReplies && !isInPendingPostView && showReplies && hasMore && (
|
{!isHidden && showAllReplies && !isInPendingPostView && showReplies && hasMore && !!post?.replyCount && (
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
||||||
totalCount={filteredReplies.length}
|
totalCount={filteredReplies.length}
|
||||||
@@ -1076,7 +1076,13 @@ const PostDesktop = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{!isInPendingPostView && stateString && !hasFailedState && state !== 'succeeded' && isInPostPageView && !(!showReplies && !showAllReplies) ? (
|
{!isInPendingPostView &&
|
||||||
|
stateString &&
|
||||||
|
!hasFailedState &&
|
||||||
|
state !== 'succeeded' &&
|
||||||
|
!(post?.timestamp && !post?.updatedAt) &&
|
||||||
|
isInPostPageView &&
|
||||||
|
!(!showReplies && !showAllReplies) ? (
|
||||||
<div className={styles.stateString}>
|
<div className={styles.stateString}>
|
||||||
<br />
|
<br />
|
||||||
<LoadingEllipsis string={stateString} />
|
<LoadingEllipsis string={stateString} />
|
||||||
|
|||||||
@@ -732,7 +732,7 @@ const PostMobile = ({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* Virtuoso infinite scroll for post page view when there's more content to paginate */}
|
{/* Virtuoso infinite scroll for post page view when there's more content to paginate */}
|
||||||
{showAllReplies && !isInPendingPostView && showReplies && hasMore && (
|
{showAllReplies && !isInPendingPostView && showReplies && hasMore && !!post?.replyCount && (
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
||||||
totalCount={filteredReplies.length}
|
totalCount={filteredReplies.length}
|
||||||
@@ -792,7 +792,13 @@ const PostMobile = ({
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
{!isInPendingPostView && stateString && !hasFailedState && state !== 'succeeded' && isInPostPageView && !(!showReplies && !showAllReplies) ? (
|
{!isInPendingPostView &&
|
||||||
|
stateString &&
|
||||||
|
!hasFailedState &&
|
||||||
|
state !== 'succeeded' &&
|
||||||
|
!(post?.timestamp && !post?.updatedAt) &&
|
||||||
|
isInPostPageView &&
|
||||||
|
!(!showReplies && !showAllReplies) ? (
|
||||||
<div className={styles.stateString}>
|
<div className={styles.stateString}>
|
||||||
<LoadingEllipsis string={stateString} />
|
<LoadingEllipsis string={stateString} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user