diff --git a/src/apps/notes/index.tsx b/src/apps/notes/index.tsx index 444dedb..bb521be 100644 --- a/src/apps/notes/index.tsx +++ b/src/apps/notes/index.tsx @@ -334,7 +334,6 @@ function ThreadNode({
0 ? true : undefined} className={cn( !isRootReply && diff --git a/src/components/nostr/NoteCard.tsx b/src/components/nostr/NoteCard.tsx index 4dcddc0..889fde3 100644 --- a/src/components/nostr/NoteCard.tsx +++ b/src/components/nostr/NoteCard.tsx @@ -74,8 +74,8 @@ export function NoteCard({ event, compact, onReply, replyOpen, className }: Note size="sm" className="h-7 gap-1.5 px-2 text-xs text-muted-foreground" onClick={() => onReply(event)} - aria-expanded={replyOpen} - aria-controls={replyOpen ? 'reply-composer' : undefined} + aria-expanded={!!replyOpen} + aria-controls="reply-composer" > Reply diff --git a/src/lib/nostrUtils.ts b/src/lib/nostrUtils.ts index eb3d192..d4e02ee 100644 --- a/src/lib/nostrUtils.ts +++ b/src/lib/nostrUtils.ts @@ -144,7 +144,7 @@ export interface ReplyNode { children: ReplyNode[]; /** True when the event landed here as a fallback, not via its NIP-10 tags. */ misplaced: boolean; - /** Depth of the cycle this event is part of, when its chain loops. */ + /** Whether this event's chain loops back on itself. */ cycle?: boolean; }