fix: improve spacing and truncation in zap transaction items

- Increase gap between username and message from gap-1 to gap-2 (0.5rem)
- Add min-w-0 to message span for proper ellipsis truncation in flex
- Remove duplicate truncate class from parent div to prevent conflicts
- Message now properly shows ellipsis (...) when it doesn't fit on one line
This commit is contained in:
Claude
2026-01-18 20:19:42 +00:00
parent 2c17719e72
commit 1a78c9fc64

View File

@@ -323,10 +323,10 @@ function TransactionLabel({ transaction }: { transaction: Transaction }) {
return (
<div className="flex items-center gap-2 min-w-0">
<Zap className="size-3.5 flex-shrink-0 fill-zap text-zap" />
<div className="text-sm truncate min-w-0 flex items-center gap-1">
<div className="text-sm min-w-0 flex items-center gap-2">
<UserName pubkey={zapInfo.sender} className="flex-shrink-0" />
{zapInfo.message && (
<span className="truncate">
<span className="truncate min-w-0">
<RichText
content={zapInfo.message}
event={zapInfo.zapRequestEvent}