fix: respect zap message

This commit is contained in:
Alejandro Gómez
2025-12-22 12:59:56 +01:00
parent 64002ed1ec
commit 62676feeba

View File

@@ -47,7 +47,7 @@ export function ZapCompactPreview({ event }: { event: NostrEvent }) {
{amountInSats.toLocaleString("en", { notation: "compact" })}
</span>
{zapMessage && (
<span className="flex-1 truncate line-clamp-1">
<span className="truncate line-clamp-1 flex-shrink-0">
<RichText
content={zapMessage}
className="inline text-sm leading-none"
@@ -57,7 +57,7 @@ export function ZapCompactPreview({ event }: { event: NostrEvent }) {
)}
{zappedEvent && (
<>
<UserName pubkey={zappedEvent.pubkey} className="flex-1" />
<UserName pubkey={zappedEvent.pubkey} />
<span className="text-muted-foreground truncate line-clamp-1">
<RichText
event={zappedEvent}