fix: add spacing in comment thread, show 'Me' for current user

This commit is contained in:
CREDO23 2026-01-16 17:08:40 +02:00
parent 0e48df63ff
commit 15c9594926
2 changed files with 17 additions and 5 deletions

View file

@ -86,7 +86,7 @@ export function CommentThread({
{/* Reply items */}
{showReplies && hasReplies && (
<div className="space-y-2">
<div className="space-y-3 pt-2">
{thread.replies.map((reply) => (
<CommentItem
key={reply.id}
@ -100,8 +100,11 @@ export function CommentThread({
)}
{/* Reply composer or button */}
{isReplyComposerOpen ? (
<CommentComposer
<>
<div className="pt-3">
<CommentComposer
members={members}
membersLoading={membersLoading}
placeholder="Write a reply..."
@ -111,14 +114,17 @@ export function CommentThread({
onCancel={handleReplyCancel}
autoFocus
/>
</div>
</>
) : (
<Button variant="ghost" size="sm" className="h-7 px-2 text-xs" onClick={handleReply}>
<MessageSquare className="mr-1.5 size-3" />
Reply
</Button>
)}
</div>
</div>
</div>
)}
{/* Reply button when no replies yet */}