diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx
index 65d3c59d..42b92124 100644
--- a/src/components/post-desktop/post-desktop.tsx
+++ b/src/components/post-desktop/post-desktop.tsx
@@ -498,8 +498,8 @@ const PostDesktop = ({ post, roles, showAllReplies, showReplies = true }: PostPr
)}
)}
- {/* Virtuoso infinite scroll for post page view with all replies */}
- {!isHidden && showAllReplies && !isInPendingPostView && showReplies && filteredReplies.length > 0 && (
+ {/* Virtuoso infinite scroll for post page view with more than 25 replies */}
+ {!isHidden && showAllReplies && !isInPendingPostView && showReplies && replyCount > 25 && (
)}
+ {/* Non-virtualized rendering for post page view with 25 or fewer replies */}
+ {!isHidden &&
+ showAllReplies &&
+ !isInPendingPostView &&
+ showReplies &&
+ replyCount <= 25 &&
+ filteredReplies.map((reply, index) => (
+
+
+
+ ))}
{/* Non-virtualized rendering for board view (last 5 replies or show omitted) */}
{!isHidden &&
!showAllReplies &&
diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx
index 20bca1e9..d7c59eee 100644
--- a/src/components/post-mobile/post-mobile.tsx
+++ b/src/components/post-mobile/post-mobile.tsx
@@ -374,8 +374,8 @@ const PostMobile = ({ post, roles, showAllReplies, showReplies = true }: PostPro
)}
- {/* Virtuoso infinite scroll for post page view with all replies */}
- {!(pinned && !isInPostView) && showAllReplies && !isInPendingPostView && showReplies && filteredReplies.length > 0 && (
+ {/* Virtuoso infinite scroll for post page view with more than 25 replies */}
+ {!(pinned && !isInPostView) && showAllReplies && !isInPendingPostView && showReplies && replyCount > 25 && (
)}
+ {/* Non-virtualized rendering for post page view with 25 or fewer replies */}
+ {!(pinned && !isInPostView) &&
+ showAllReplies &&
+ !isInPendingPostView &&
+ showReplies &&
+ replyCount <= 25 &&
+ filteredReplies.map((reply, index) => (
+
+
+
+ ))}
{/* Non-virtualized rendering for board view (last 5 replies) */}
{!(pinned && !isInPostView) &&
!showAllReplies &&