style: adjust the style of NoteStats (#222)

This commit is contained in:
Cody Tseng
2025-03-07 23:39:46 +08:00
committed by GitHub
parent 71895e3a0f
commit accf3319e7
16 changed files with 417 additions and 186 deletions

View File

@@ -58,12 +58,8 @@ const NotePage = forwardRef(({ id, index }: { id?: string; index?: number }, ref
return (
<SecondaryPageLayout ref={ref} index={index} title={t('Note')} displayScrollToTopButton>
<PictureNote key={`note-${event.id}`} event={event} fetchNoteStats />
<Separator className="mb-2 mt-4" />
<Nip22ReplyNoteList
key={`nip22-reply-note-list-${event.id}`}
event={event}
className="px-2"
/>
<Separator className="mt-4" />
<Nip22ReplyNoteList key={`nip22-reply-note-list-${event.id}`} event={event} />
</SecondaryPageLayout>
)
}
@@ -77,15 +73,11 @@ const NotePage = forwardRef(({ id, index }: { id?: string; index?: number }, ref
<ParentNote key={`parent-note-${event.id}`} eventId={parentEventId} />
<Note key={`note-${event.id}`} event={event} fetchNoteStats hideParentNotePreview />
</div>
<Separator className="mb-2 mt-4" />
<Separator className="mt-4" />
{event.kind === kinds.ShortTextNote ? (
<ReplyNoteList key={`reply-note-list-${event.id}`} event={event} className="px-2" />
<ReplyNoteList key={`reply-note-list-${event.id}`} event={event} />
) : isPictureEvent(event) ? (
<Nip22ReplyNoteList
key={`nip22-reply-note-list-${event.id}`}
event={event}
className="px-2"
/>
<Nip22ReplyNoteList key={`nip22-reply-note-list-${event.id}`} event={event} />
) : null}
</SecondaryPageLayout>
)