From b93168feec9ea553d02baf6abc9bc16b8e07399c Mon Sep 17 00:00:00 2001 From: celine Date: Sat, 24 Jan 2026 02:53:16 -0500 Subject: [PATCH] adjustments to make everything more consistent --- .../[rkey]/BlueskyQuotesPage.tsx | 10 ++-- .../[publication]/[rkey]/BskyPostContent.tsx | 5 +- .../[rkey]/Interactions/Comments/index.tsx | 22 ++++--- .../[rkey]/Interactions/Quotes.tsx | 59 +++++++++++-------- 4 files changed, 51 insertions(+), 45 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/BlueskyQuotesPage.tsx b/app/lish/[did]/[publication]/[rkey]/BlueskyQuotesPage.tsx index 8dba71fb..bf1eede2 100644 --- a/app/lish/[did]/[publication]/[rkey]/BlueskyQuotesPage.tsx +++ b/app/lish/[did]/[publication]/[rkey]/BlueskyQuotesPage.tsx @@ -41,13 +41,11 @@ export function BlueskyQuotesPage(props: { pageType="doc" fullPageScroll={false} id={`post-page-${pageId}`} - drawerOpen={!!drawer} + drawerOpen={false} pageOptions={pageOptions} >
-

- Bluesky Quotes -

+

Bluesky Quotes

{isLoading ? (
loading quotes @@ -78,7 +76,7 @@ function QuotesContent(props: { posts: PostView[]; postUri: string }) { <> {posts.length !== index + 1 && ( -
+
)} ))} @@ -100,7 +98,7 @@ function QuotePost(props: { post: PostView; quotesUri: string }) { quoteEnabled replyEnabled onEmbedClick={(e) => e.stopPropagation()} - className="relative py-2 px-2 hover:bg-bg-page rounded cursor-pointer text-sm" + className="relative rounded cursor-pointer text-sm" /> ); } diff --git a/app/lish/[did]/[publication]/[rkey]/BskyPostContent.tsx b/app/lish/[did]/[publication]/[rkey]/BskyPostContent.tsx index 6e0079d9..6305dfeb 100644 --- a/app/lish/[did]/[publication]/[rkey]/BskyPostContent.tsx +++ b/app/lish/[did]/[publication]/[rkey]/BskyPostContent.tsx @@ -237,8 +237,8 @@ function PostInfo(props: { const { displayName, handle, createdAt, compact = false } = props; return ( -
-
+
+
{displayName}
@@ -255,6 +255,7 @@ function PostInfo(props: { />
+
diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx index fde12e67..34608196 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/index.tsx @@ -55,8 +55,8 @@ export function CommentsDrawerContent(props: { id={"commentsDrawer"} className="flex flex-col gap-2 relative text-sm text-secondary" > -
- Comments +
+

Comments

)}
-
+
{comments .sort((a, b) => { let aRecord = a.record as PubLeafletComment.Record; @@ -119,26 +119,23 @@ const Comment = (props: { }) => { const did = props.comment.bsky_profiles?.did; - let timeAgoDate = timeAgo(props.record.createdAt); - const formattedDate = useLocalizedDate(props.record.createdAt, { - year: "numeric", - month: "long", - day: "2-digit", - }); + let timeAgoDate = timeAgo(props.record.createdAt, { compact: true }); return (
-
+
{did ? ( +
{props.profile.displayName}
} /> ) : null} + +
{timeAgoDate}
{props.record.attachment && @@ -210,7 +207,8 @@ const Replies = (props: { setReplyBoxOpen(false); }} > - {replies.length} + {" "} + {replies.length !== 0 && replies.length} {identity?.atp_did && ( <> diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx index e54179f3..d71e16e2 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Quotes.tsx @@ -104,51 +104,57 @@ export const MentionsDrawerContent = (props: {
) : ( -
+
{quotesWithLinks.length > 0 && ( -
- Quotes +
+

Quotes on Bluesky

{/* Quotes with links (quoted content) */} {quotesWithLinks.map((q, index) => { return ( -
+ <> -
+ {quotesWithLinks.length !== index + 1 && ( +
+ )} + ); })}
)} {/* Direct post mentions (without quoted content) */} {directMentions.length > 0 && ( -
-
- Mentions on Bluesky -
-
- {directMentions.map((q, index) => { - const post = postViewMap.get(q.uri); - if (!post) return null; - - const parent = { type: "thread" as const, uri: q.uri }; - return ( +
+

Mentions on Bluesky

+ {directMentions.map((q, index) => { + const post = postViewMap.get(q.uri); + if (!post) return null; + + const parent = { type: "thread" as const, uri: q.uri }; + return ( + <> - ); - })} -
+ {directMentions.length !== index + 1 && ( +
+ )} + + ); + })}
)}
@@ -176,20 +182,23 @@ const Quote = (props: { if (!quotePosition) return null; return ( -
+
-
+
); @@ -262,7 +271,7 @@ export const QuoteContent = (props: { blocks={content} did={props.did} preview - className="py-0!" + className="py-0! px-0! text-tertiary" />
-- 2.51.2