feat: 💨

This commit is contained in:
codytseng
2025-06-05 17:02:44 +08:00
parent 2b82ae78b7
commit 00866fd73a
3 changed files with 10 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ function HighlightSource({ event }: { event: Event }) {
return (
<div className="flex items-center gap-2 text-muted-foreground">
<div>{t('From')}</div>
<div className="shrink-0">{t('From')}</div>
{pubkey && <UserAvatar userId={pubkey} size="xSmall" className="cursor-pointer" />}
{referenceEvent && isSupportedKind(referenceEvent.kind) ? (
<ContentPreview

View File

@@ -108,7 +108,7 @@ const PostTextarea = forwardRef<
}
return (
<Tabs defaultValue="edit" className="space-y-4">
<Tabs defaultValue="edit" className="space-y-2">
<TabsList>
<TabsTrigger value="edit">{t('Edit')}</TabsTrigger>
<TabsTrigger value="preview">{t('Preview')}</TabsTrigger>

View File

@@ -251,7 +251,14 @@ export default function ReplyNoteList({
<div className={className}>
{replies.slice(0, showCount).map((reply) => {
if (!isUserTrusted(reply.pubkey)) {
return null
const repliesForThisReply = repliesMap.get(reply.id)
// If the reply is not trusted and there are no trusted replies for this reply, skip rendering
if (
!repliesForThisReply ||
repliesForThisReply.events.every((evt) => !isUserTrusted(evt.pubkey))
) {
return null
}
}
const parentEventTag = getParentEventTag(reply)