mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
fix: truncate invoice descriptions in confirm send dialog
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.
This commit is contained in:
@@ -1461,11 +1461,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