feat: poll response notification

This commit is contained in:
codytseng
2025-07-28 22:33:51 +08:00
parent 20c712c56b
commit bcd149b304
14 changed files with 209 additions and 93 deletions

View File

@@ -111,14 +111,15 @@ function HighlightSource({ event }: { event: Event }) {
<div className="shrink-0">{t('From')}</div>
{pubkey && <UserAvatar userId={pubkey} size="xSmall" className="cursor-pointer" />}
{referenceEvent ? (
<ContentPreview
<div
className="truncate underline pointer-events-auto cursor-pointer hover:text-foreground"
event={referenceEvent}
onClick={(e) => {
e.stopPropagation()
push(toNote(referenceEvent))
}}
/>
>
<ContentPreview event={referenceEvent} />
</div>
) : referenceEventId ? (
<div className="truncate text-muted-foreground">
<a