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:
Claude
2026-01-19 15:31:06 +00:00
parent 5475f9b518
commit 3a329f1f7e

View File

@@ -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}