+ )}
{feed.length !== 0 ? (
<>
{rules && rules.length > 0 &&
}
diff --git a/src/views/home/popular-threads-box/popular-threads-box.tsx b/src/views/home/popular-threads-box/popular-threads-box.tsx
index 6e6a58ae..f06e73de 100644
--- a/src/views/home/popular-threads-box/popular-threads-box.tsx
+++ b/src/views/home/popular-threads-box/popular-threads-box.tsx
@@ -18,9 +18,11 @@ interface PopularThreadProps {
}
const PopularThreadCard = ({ post, boardTitle, boardShortAddress }: PopularThreadProps) => {
- const { cid, content, subplebbitAddress, title } = post || {};
+ const { cid, subplebbitAddress, title } = post || {};
const commentMediaInfo = getCommentMediaInfo(post);
+ let content = post?.content?.replace(/\n\n/g, '\n');
+
return (
{boardTitle || boardShortAddress}
diff --git a/src/views/post/post.module.css b/src/views/post/post.module.css
index 5c9e6bb0..60bc1f02 100644
--- a/src/views/post/post.module.css
+++ b/src/views/post/post.module.css
@@ -73,11 +73,14 @@
}
.userAddress {
+ padding: 0 5px;
+ border-radius: 6px;
+ font-size: 0.8em;
cursor: pointer;
}
-.postDesktop .userAddress:hover {
- color: var(--button-desktop-text-color-hover);
+.userAddress:hover {
+ color: var(--post-quotelink-text-color-hover) !important;
}
.postDesktop .subject {
@@ -164,12 +167,13 @@
font-size: var(--post-mobile-abbr-font-size);
}
-.postDesktop .abbr a {
+.postDesktop .abbr a, .postDesktop .abbr span {
color: var(--post-link-text-color);
text-decoration: var(--post-content-link-text-decoration);
}
-.postDesktop .abbr a:hover {
+.postDesktop .abbr a:hover, .postDesktop .abbr span:hover {
+ cursor: pointer;
color: var(--post-link-text-color-hover);
text-decoration: var(--post-content-link-text-decoration-hover);
}
@@ -344,13 +348,14 @@
font-size: var(--post-mobile-abbr-font-size);
}
-.postMobile .abbr a {
+.postMobile .abbr a, .postMobile .abbr span {
color: var(--post-link-text-color);
text-decoration: var(--post-content-link-text-decoration);
}
-.postMobile .abbr a:hover {
+.postMobile .abbr a:hover, .postMobile .abbr span:hover {
+ cursor: pointer;
color: var(--post-link-text-color-hover);
text-decoration: var(--post-content-link-text-decoration-hover);
}
diff --git a/src/views/post/post.tsx b/src/views/post/post.tsx
index b3c94dff..f62a4a85 100644
--- a/src/views/post/post.tsx
+++ b/src/views/post/post.tsx
@@ -22,7 +22,7 @@ export interface PostProps {
roles?: Role[];
showAllReplies?: boolean;
showReplies?: boolean;
- openReplyModal?: (parentCid: string, postCid: string) => void;
+ openReplyModal?: (parentCid: string, postCid: string, subplebbitAddress: string) => void;
}
export const Post = ({ post, showAllReplies = false, showReplies = true, openReplyModal }: PostProps) => {
@@ -62,7 +62,7 @@ const PostPage = () => {
const subplebbit = useSubplebbit({ subplebbitAddress });
const { createdAt, description, rules, shortAddress, suggested, title } = subplebbit;
- const { activeCid, threadCid, closeModal, openReplyModal, showReplyModal, scrollY } = useReplyModal();
+ const { activeCid, threadCid, closeModal, openReplyModal, showReplyModal, scrollY, subplebbitAddress: postSubplebbitAddress } = useReplyModal();
const comment = useComment({ commentCid });
@@ -91,7 +91,16 @@ const PostPage = () => {
return (
{isInSettigsView && }
- {showReplyModal && activeCid && threadCid && }
+ {activeCid && threadCid && postSubplebbitAddress && (
+
+ )}
{/* TODO: remove this replyCount error once api supports scrolling replies pages */}
{replyCount > 60 && Error: this thread has too many replies, some of them cannot be displayed right now.}
{error && Error: {error.message}}