updated qrcode bg color and truncated text

This commit is contained in:
lemonknowsall committed 2025-10-12 14:13:07 -07:00
1 parent 7af7aee47c
commit 4f2bfa4d5b
1 file changed
+4 -4
+4 -4
View File
@@ -110,7 +110,7 @@ export function QRModal({
</div>
)}
<div className="flex justify-center">
<div className="bg-white dark:bg-gray-100 p-4 rounded-lg border shadow-sm">
<div className="bg-white p-4 rounded-lg border shadow-sm">
<img
src={qrCodeUrl}
alt={`${title} QR Code`}
@@ -121,11 +121,11 @@ export function QRModal({
<div className="text-center">
<div
className="bg-muted p-3 rounded-lg border font-mono text-sm break-all cursor-pointer hover:bg-muted/80 transition-colors relative group"
className="bg-muted p-3 rounded-lg border font-mono text-sm cursor-pointer hover:bg-muted/80 transition-colors relative group"
onClick={handleCopy}
title="Click to copy"
title="Click to copy full content"
>
{content}
{content.length > 20 ? `${content.substring(0, 20)}...` : content}
<div className="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity">
{copied ? (
<Check className="h-4 w-4 text-green-600" />