From 907da404b2e1b35b307654f51931e635eee3a31c Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Fri, 28 Mar 2025 21:31:26 +0000 Subject: [PATCH] Update comment style --- components/ui/Comments.tsx | 48 +++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/components/ui/Comments.tsx b/components/ui/Comments.tsx index d615b74..bb64885 100644 --- a/components/ui/Comments.tsx +++ b/components/ui/Comments.tsx @@ -26,28 +26,32 @@ type CommentsListProps = { Comments.List = function List({comments}: CommentsListProps) { return ( -
-

- Comments -

- {comments.map((comment) => ( -
- {comment.user.name} -
-
-

{comment.user.name}

-

- -

-
-

{comment.content}

-
-
- ))} -
+ <> + {comments.length > 0 && +
+

+ Comments +

+ {comments.map((comment) => ( +
+ {comment.user.name} +
+
+

{comment.user.name}

+

+ +

+
+

{comment.content}

+
+
+ ))} +
+ } + ) }