mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix mobile thread replies
This commit is contained in:
@@ -23,7 +23,7 @@ import useSuccess from '../../hooks/useSuccess';
|
|||||||
|
|
||||||
const Board = () => {
|
const Board = () => {
|
||||||
const {
|
const {
|
||||||
captchaResponse, setCaptchaResponse,
|
setCaptchaResponse,
|
||||||
setChallengesArray,
|
setChallengesArray,
|
||||||
defaultSubplebbits,
|
defaultSubplebbits,
|
||||||
setIsCaptchaOpen,
|
setIsCaptchaOpen,
|
||||||
|
|||||||
@@ -711,9 +711,7 @@ const Thread = () => {
|
|||||||
</div>
|
</div>
|
||||||
{comment.replyCount === undefined ? <PostLoader /> : null}
|
{comment.replyCount === undefined ? <PostLoader /> : null}
|
||||||
{comment.replyCount > 0 &&
|
{comment.replyCount > 0 &&
|
||||||
Object.keys(comment?.replies?.pages?.topAll.comments).map(() => {
|
renderedComments.map((reply) => {
|
||||||
const renderedComments = renderThreadComments(comment?.replies?.pages?.topAll.comments);
|
|
||||||
return renderedComments.map(reply => {
|
|
||||||
return (
|
return (
|
||||||
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
|
<div key={`mob-rc-${reply.cid}-${Math.random()}`} className="reply-container">
|
||||||
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
<div key={`mob-pr-${reply.cid}`} className="post-reply">
|
||||||
@@ -759,7 +757,7 @@ const Thread = () => {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})}
|
}
|
||||||
</div>
|
</div>
|
||||||
<BottomBar selectedStyle={selectedStyle}>
|
<BottomBar selectedStyle={selectedStyle}>
|
||||||
<div id="bottombar-desktop">
|
<div id="bottombar-desktop">
|
||||||
|
|||||||
Reference in New Issue
Block a user