diff --git a/src/app.tsx b/src/app.tsx index b895b79e..872a9576 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -23,7 +23,7 @@ const BoardLayout = () => { const isValidAccountCommentIndex = !accountCommentIndex || (!isNaN(parseInt(accountCommentIndex)) && parseInt(accountCommentIndex) >= 0); const isValidCommentCid = !commentCid || /^Qm[a-zA-Z0-9]{44}$/.test(commentCid); - const isValidSubplebbitAddress = subplebbitAddress && (subplebbitAddress.includes('.') || /^12D3K[a-zA-Z0-9]{44}$/.test(subplebbitAddress)); + const isValidSubplebbitAddress = !subplebbitAddress || subplebbitAddress.includes('.') || /^12D3K[a-zA-Z0-9]{44}$/.test(subplebbitAddress); if (!isValidAccountCommentIndex || !isValidCommentCid || !isValidSubplebbitAddress) { return ; diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index c5b9c4be..7762c7fa 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -194,7 +194,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) )} )} - {(replies.length > 5 || (pinned && replies.length > 0)) && !isInPostPage && ( + {!isDescription && !isRules && (replies.length > 5 || (pinned && replies.length > 0)) && !isInPostPage && ( @@ -212,6 +212,8 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) )} {!(pinned && !isInPostPage) && + !isDescription && + !isRules && replies && (showAllReplies ? replies : replies.slice(-5)).map((reply, index) => (
@@ -486,6 +488,8 @@ const PostMobile = ({ openReplyModal, post, roles, showAllReplies }: PostProps) )}
{!(pinned && !isInPostPage) && + !isDescription && + !isRules && replies && (showAllReplies ? replies : replies.slice(-5)).map((reply, index) => (
diff --git a/src/views/not-found/not-found.module.css b/src/views/not-found/not-found.module.css index 3724cc9a..df9c1f1a 100644 --- a/src/views/not-found/not-found.module.css +++ b/src/views/not-found/not-found.module.css @@ -53,4 +53,16 @@ .backToBoard a { color: blue; +} + +@media (max-width: 640px) { + .content { + min-width: 0; + width: auto; + padding: 10px; + } + + .boxContent img { + width: 100%; + } } \ No newline at end of file