fix(sync): QR a sa vraie taille, la regle svg des icones l'ecrasait
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ Bridge.onSyncQr = function (size, bits) {
|
|||||||
if (bits.charCodeAt(r * size + c) === 49) d += 'M' + c + ' ' + r + 'h1v1h-1z';
|
if (bits.charCodeAt(r * size + c) === 49) d += 'M' + c + ' ' + r + 'h1v1h-1z';
|
||||||
box.innerHTML =
|
box.innerHTML =
|
||||||
'<svg viewBox="0 0 ' + size + ' ' + size + '" width="240" height="240" ' +
|
'<svg viewBox="0 0 ' + size + ' ' + size + '" width="240" height="240" ' +
|
||||||
'shape-rendering="crispEdges" style="background:#fff;display:block;border-radius:6px">' +
|
'shape-rendering="crispEdges" style="width:240px;height:240px;max-width:none;flex:none;' +
|
||||||
|
'background:#fff;display:block;border-radius:6px">' +
|
||||||
'<path d="' + d + '" fill="#000"/></svg>' +
|
'<path d="' + d + '" fill="#000"/></svg>' +
|
||||||
'<p style="font-size:11px;color:var(--text-faint);margin:6px 0 0">' +
|
'<p style="font-size:11px;color:var(--text-faint);margin:6px 0 0">' +
|
||||||
'Scan it with the phone camera and copy the text, then in the app: ' +
|
'Scan it with the phone camera and copy the text, then in the app: ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user