icons/bilder

This commit is contained in:
Timo
2026-01-07 19:41:40 +01:00
parent 749cabf0bf
commit e7478a4af7
2 changed files with 154 additions and 5 deletions

View File

@@ -31,10 +31,10 @@ export const QRCodeCard: React.FC<QRCodeCardProps> = ({
// For dynamic QR codes, use the redirect URL for tracking
// For static QR codes, use the direct URL from content
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || (typeof window !== 'undefined' ? window.location.origin : 'http://localhost:3050');
// Get the QR URL based on type
let qrUrl = '';
// SIMPLE FIX: For STATIC QR codes, ALWAYS use the direct content
if (qr.type === 'STATIC') {
// Extract the actual URL/content based on contentType
@@ -171,7 +171,7 @@ END:VCARD`;
</Badge>
</div>
</div>
<Dropdown
align="right"
trigger={
@@ -200,7 +200,13 @@ END:VCARD`;
size={96}
fgColor={qr.style?.foregroundColor || '#000000'}
bgColor={qr.style?.backgroundColor || '#FFFFFF'}
level="M"
level="H"
imageSettings={qr.style?.imageSettings ? {
src: qr.style.imageSettings.src,
height: qr.style.imageSettings.height * (96 / 200), // Scale logo for smaller QR
width: qr.style.imageSettings.width * (96 / 200),
excavate: qr.style.imageSettings.excavate,
} : undefined}
/>
</div>
</div>