diff --git a/diagnostic/index.html b/diagnostic/index.html index 538c519..9affa49 100644 --- a/diagnostic/index.html +++ b/diagnostic/index.html @@ -571,7 +571,7 @@
-
+
QR-Code wird geladen...
@@ -1605,8 +1605,12 @@ const qr = window.qrcode(0, 'M'); qr.addData(payload); qr.make(); - box.innerHTML = qr.createImgTag(6, 4); - box.querySelector('img').style.cssText = 'background:#fff;padding:8px;border-radius:4px;display:block;'; + // Als SVG rendern — skaliert sauber auf Container-Groesse + box.innerHTML = qr.createSvgTag({ cellSize: 4, margin: 2, scalable: true }); + const svg = box.querySelector('svg'); + if (svg) { + svg.style.cssText = 'width:100%;height:100%;background:#fff;border-radius:4px;padding:6px;box-sizing:border-box;display:block;'; + } } catch (e) { box.innerHTML = `
Fehler: ${e.message}
`; }