refactor: Make thread comments more compact

- Create ThreadCommentRenderer for compact comment display
- Remove reply preview from comments
- Remove footer from comments
- Remove reply count display when collapsed
- Reduce padding in comments section
- Tighter spacing between comments (space-y-0)
- Use compact renderer for both kind 1 and 1111 in thread view
This commit is contained in:
Claude
2026-01-17 19:32:03 +00:00
parent 616cc083ce
commit 2515545e36
3 changed files with 56 additions and 20 deletions

View File

@@ -344,12 +344,7 @@ export function ThreadViewer({ pointer }: ThreadViewerProps) {
</div>
{/* Replies Section */}
<div className="p-4">
<div className="text-sm font-semibold text-muted-foreground mb-3 flex items-center gap-2">
<MessageSquare className="size-4" />
{replies?.length || 0} {replies?.length === 1 ? "reply" : "replies"}
</div>
<div className="px-3 py-2">
{replies && replies.length > 0 ? (
<ThreadConversation
rootEventId={rootEvent.id}
@@ -357,7 +352,7 @@ export function ThreadViewer({ pointer }: ThreadViewerProps) {
threadKind={rootEvent.kind === 1 ? "nip10" : "nip22"}
/>
) : (
<div className="text-sm text-muted-foreground italic">
<div className="text-sm text-muted-foreground italic p-2">
No replies yet
</div>
)}