mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-08 22:47:02 +02:00
fix: truncate invoice descriptions in confirm send dialog (#155)
Add proper truncation for long invoice descriptions in the wallet's confirm send dialog. The description label is now flex-shrink-0 to prevent it from shrinking, and a title attribute shows the full description on hover. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1572,11 +1572,14 @@ export default function WalletViewer() {
|
||||
</div>
|
||||
)}
|
||||
{invoiceDetails?.description && (
|
||||
<div className="flex justify-between">
|
||||
<span className="text-muted-foreground">
|
||||
<div className="flex justify-between gap-2">
|
||||
<span className="text-muted-foreground flex-shrink-0">
|
||||
Description:
|
||||
</span>
|
||||
<span className="truncate ml-2">
|
||||
<span
|
||||
className="truncate text-right"
|
||||
title={invoiceDetails.description}
|
||||
>
|
||||
{invoiceDetails.description}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user