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>
|
||||
)}
|
||||
{/* 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
|
||||
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
||||
totalCount={filteredReplies.length}
|
||||
@@ -1076,7 +1076,13 @@ const PostDesktop = ({
|
||||
</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}>
|
||||
<br />
|
||||
<LoadingEllipsis string={stateString} />
|
||||
|
||||
@@ -732,7 +732,7 @@ const PostMobile = ({
|
||||
)}
|
||||
</div>
|
||||
{/* 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
|
||||
increaseViewportBy={{ bottom: 1200, top: 1200 }}
|
||||
totalCount={filteredReplies.length}
|
||||
@@ -792,7 +792,13 @@ const PostMobile = ({
|
||||
</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}>
|
||||
<LoadingEllipsis string={stateString} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user