mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-06 02:31:13 +02:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user