mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 23:47:12 +02:00
fix: ensure invoice description truncates to 1 line in confirm dialog
Add min-w-0 to flex container and description span to allow proper text truncation in flexbox layout. Without this, flex items maintain their content width preventing truncate from working.
This commit is contained in:
@@ -1572,12 +1572,12 @@ export default function WalletViewer() {
|
||||
</div>
|
||||
)}
|
||||
{invoiceDetails?.description && (
|
||||
<div className="flex justify-between gap-2">
|
||||
<div className="flex justify-between gap-2 min-w-0">
|
||||
<span className="text-muted-foreground flex-shrink-0">
|
||||
Description:
|
||||
</span>
|
||||
<span
|
||||
className="truncate text-right"
|
||||
className="truncate text-right min-w-0"
|
||||
title={invoiceDetails.description}
|
||||
>
|
||||
{invoiceDetails.description}
|
||||
|
||||
Reference in New Issue
Block a user