Update comment style
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m10s

This commit is contained in:
Ryan Freeman 2025-03-28 21:31:26 +00:00
parent ad82326eb9
commit 907da404b2

View File

@ -26,6 +26,8 @@ type CommentsListProps = {
Comments.List = function List({comments}: CommentsListProps) { Comments.List = function List({comments}: CommentsListProps) {
return ( return (
<>
{comments.length > 0 &&
<section> <section>
<h3 className="text-base font-semibold tracking-tight text-zinc-800 dark:text-zinc-100 mb-4"> <h3 className="text-base font-semibold tracking-tight text-zinc-800 dark:text-zinc-100 mb-4">
Comments Comments
@ -43,11 +45,13 @@ Comments.List = function List({comments}: CommentsListProps) {
</time> </time>
</p> </p>
</div> </div>
<p className="mt-1 text-sm text-zinc-600 dark:text-zinc-400">{comment.content}</p> <p className="mt-1 text-sm text-zinc-600 dark:text-zinc-400 max-w-xl">{comment.content}</p>
</div> </div>
</article> </article>
))} ))}
</section> </section>
}
</>
) )
} }