mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
updated qrcode bg color and truncated text
This commit is contained in:
1 parent
7af7aee47c
commit
4f2bfa4d5b
1 file changed
+4
-4
@@ -110,7 +110,7 @@ export function QRModal({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex justify-center">
|
<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
|
<img
|
||||||
src={qrCodeUrl}
|
src={qrCodeUrl}
|
||||||
alt={`${title} QR Code`}
|
alt={`${title} QR Code`}
|
||||||
@@ -121,11 +121,11 @@ export function QRModal({
|
|||||||
|
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<div
|
<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}
|
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">
|
<div className="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity">
|
||||||
{copied ? (
|
{copied ? (
|
||||||
<Check className="h-4 w-4 text-green-600" />
|
<Check className="h-4 w-4 text-green-600" />
|
||||||
|
|||||||
Reference in new issue
Block a user