diff --git a/src/components/Board.jsx b/src/components/Board.jsx index 3c6a5f56..89edc0f0 100644 --- a/src/components/Board.jsx +++ b/src/components/Board.jsx @@ -507,93 +507,93 @@ const Board = ({ setBodyStyle }) => { pageStart={0} loadMore={tryLoadMore} hasMore={hasMore} - loader={
++ - :{thread.content.slice(0, 2000)} - (...) -
+ (...) +
Post too long. - handleClickThread(thread.cid)} className="ttl-link">Click here + handleClickThread(thread.cid)} className="ttl-link">Click here to view.+ :{thread.content}) : null}
- ++ - :+ {`c/${reply.parentCid.slice(0, 8)}`}{
} {reply.content.slice(0, 1000)} - (...) -
+ (...) +
Comment too long. - handleClickThread(thread.cid)} className="ttl-link">Click here + handleClickThread(thread.cid)} className="ttl-link">Click here to view.- handleQuoteClick(reply, event)}> + :+ handleQuoteClick(reply, event)}> {`c/${reply.parentCid.slice(0, 8)}`}{
} {reply.content} @@ -722,163 +722,163 @@ const Board = ({ setBodyStyle }) => {
-
+ ++ - :{thread.content.slice(0, 1500)} - (...) -
+ (...) +
Post too long. - handleClickThread(thread.cid)} className="ttl-link">Click here + handleClickThread(thread.cid)} className="ttl-link">Click here to view.+ :{thread.content}) : null}
- ++ - :+ {`c/${reply.parentCid.slice(0, 8)}`}{
} {reply.content.slice(0, 1000)} - (...) -
+ (...) +
Comment too long. - handleClickThread(thread.cid)} className="ttl-link">Click here + handleClickThread(thread.cid)} className="ttl-link">Click here to view.- handleQuoteClick(reply, event)}> + :+ handleQuoteClick(reply, event)}> {`c/${reply.parentCid.slice(0, 8)}`}{
} {reply.content} diff --git a/src/components/Catalog.jsx b/src/components/Catalog.jsx index 9978f92a..31f5bfb3 100644 --- a/src/components/Catalog.jsx +++ b/src/components/Catalog.jsx @@ -340,9 +340,9 @@ const Catalog = ({ setBodyStyle }) => {<> {defaultSubplebbits.map(subplebbit => ( - + [ - handleClickTitle(subplebbit.title, subplebbit.address)} + handleClickTitle(subplebbit.title, subplebbit.address)} >{subplebbit.title} ] @@ -362,7 +362,7 @@ const Catalog = ({ setBodyStyle }) => { @@ -476,23 +476,23 @@ const Catalog = ({ setBodyStyle }) => { pageStart={0} loadMore={tryLoadMore} hasMore={hasMore} - loader={ Loading...} + loader={Loading...} > {feed.map(thread => { return ( -- handleClickThread(thread.cid)}> -+
+ handleClickThread(thread.cid)}> +-
- ++-+R: - {thread.replyCount} + {thread.replyCount}-- {thread.title ? `${thread.title}` : null} +diff --git a/src/components/Thread.jsx b/src/components/Thread.jsx index ae8b28e0..a30e1519 100644 --- a/src/components/Thread.jsx +++ b/src/components/Thread.jsx @@ -259,9 +259,9 @@ const Thread = ({ setBodyStyle }) => {+ {thread.title ? `${thread.title}` : null} {thread.content ? `: ${thread.content}` : null}<> {defaultSubplebbits.map(subplebbit => ( - + [ - handleClickTitle(subplebbit.title, subplebbit.address)} >{subplebbit.title} @@ -283,7 +283,7 @@ const Thread = ({ setBodyStyle }) => { @@ -425,28 +425,28 @@ const Thread = ({ setBodyStyle }) => { --+ {comment.title ? ( comment.title.length > 75 ? <> -- + {comment.title.slice(0, 75) + " (...)"} > - : + : {comment.title} ) : null} @@ -454,17 +454,17 @@ const Thread = ({ setBodyStyle }) => { {comment.author.displayName ? comment.author.displayName.length > 20 ? <> - - + {comment.author.displayName.slice(0, 20) + " (...)"} > - : + : {comment.author.displayName} - : + : Anonymous} @@ -472,15 +472,15 @@ const Thread = ({ setBodyStyle }) => { (u/ {comment.author.address.length > 20 ? <> - - + {comment.author.address.slice(0, 20) + "..."} > - : + : {comment.author.address} }) @@ -491,13 +491,13 @@ const Thread = ({ setBodyStyle }) => { c/ {comment.cid.slice(0, 8)} - ▶ + ▶ {comment.replies?.pages.topAll.comments .sort((a, b) => a.timestamp - b.timestamp) .map((reply) => ( -- + handleQuoteClick(reply, event)}> c/{reply.cid.slice(0, 8)} @@ -518,59 +518,59 @@ const Thread = ({ setBodyStyle }) => { const renderedComments = renderThreadComments(comment.replies.pages.topAll.comments); return renderedComments.map(reply => { return ( --{'>>'}--++{'>>'}++- + {reply.author.displayName ? reply.author.displayName.length > 20 ? <> -- + {reply.author.displayName.slice(0, 20) + " (...)"} > - : + : {reply.author.displayName} - : + : Anonymous} - + (u/ {reply.author.address.length > 20 ? <> - - + {reply.author.address.slice(0, 20) + "..."} > - : + : {reply.author.address} }) - {getDate(reply.timestamp)} + {getDate(reply.timestamp)} - - c/ - {reply.cid.slice(0, 8)} + + c/ + {reply.cid.slice(0, 8)} - ▶ + ▶ {reply.replies?.pages.topAll.comments .sort((a, b) => a.timestamp - b.timestamp) .map((reply) => ( --- + handleQuoteClick(reply, event)}> c/{reply.cid.slice(0, 8)} @@ -580,7 +580,7 @@ const Thread = ({ setBodyStyle }) => { }+handleQuoteClick(reply, event)}> {`c/${reply.parentCid.slice(0, 8)}`}{
} @@ -596,73 +596,73 @@ const Thread = ({ setBodyStyle }) => {
--- ... +++ ... {comment.author.displayName ? comment.author.displayName.length > 15 ? <> --- + {comment.author.displayName.slice(0, 15) + " (...)"} > - : + : {comment.author.displayName} - : + : Anonymous} - + (u/ {comment.author.address.length > 15 ? <> - - + {comment.author.address.slice(0, 15) + "..."} > - : + : {comment.author.address} } ) -
+
{comment.title ? ( comment.title.length > 30 ? <> -- + {comment.title.slice(0, 30) + " (...)"} > - : + : {comment.title} ) : null} - + {getDate(comment.timestamp)} - c/ - {comment.cid.slice(0, 8)} + c/ + {comment.cid.slice(0, 8)} - --
58 KB JPG++ +-+
58 KB JPG+{comment.content ? ( <> {comment.content} @@ -676,54 +676,54 @@ const Thread = ({ setBodyStyle }) => { const renderedComments = renderThreadComments(comment.replies.pages.topAll.comments); return renderedComments.map(reply => { return ( ---+++... - + {reply.author.displayName ? reply.author.displayName.length > 12 ? <> --- + {reply.author.displayName.slice(0, 12) + " (...)"} > - : + : {reply.author.displayName} - : + : Anonymous} - + (u/ {reply.author.address.length > 12 ? <> - - + {reply.author.address.slice(0, 12) + "..."} > - : + : {reply.author.address} } ) -
+
- + {getDate(reply.timestamp)} - c/ - {reply.cid.slice(0, 8)} + c/ + {reply.cid.slice(0, 8)}- + handleQuoteClick(reply, event)}> {`c/${reply.parentCid.slice(0, 8)}`}{
}