Skip to content

Commit

Permalink
update reactions list rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
kualta committed Oct 8, 2023
1 parent dc849b9 commit f16395d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,7 @@ export const PostContent = ({ post }: { post: Post }) => {

return editing ? (
<>
<div
className={
"truncate whitespace-pre-wrap break-words text-sm/tight sm:text-base/tight h-auto line-clamp-none"
}
>
<div className="truncate whitespace-pre-wrap break-words text-sm/tight sm:text-base/tight h-auto line-clamp-none">
<PostEditor post={post} />
</div>
</>
Expand All @@ -292,7 +288,7 @@ export const PostBadges = ({ post }: { post: Post }) => {
<PostReactionList post={post} />

<SignedIn>
{post.reactions.length > 0 && (
{post.reactions.length > 0 || post.replies.length > 0 || post.createdAt.toUTCString() !== post.updatedAt.toUTCString() && (
<div className="flex gap-2 items-center opacity-0 group-hover:opacity-100 duration-300 delay-150">
<ReactionsList post={post} />
</div>
Expand Down

1 comment on commit f16395d

@vercel
Copy link

@vercel vercel bot commented on f16395d Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ping – ./

ping.kualta.dev
ping-kualta.vercel.app
ping-git-master-kualta.vercel.app
twot.kualta.dev

Please sign in to comment.