diff --git a/apps/mobile/src/app/menu/qr.tsx b/apps/mobile/src/app/menu/qr.tsx index 6728f81..e52bf33 100644 --- a/apps/mobile/src/app/menu/qr.tsx +++ b/apps/mobile/src/app/menu/qr.tsx @@ -45,22 +45,19 @@ export default function QrScreen() { const currentSvgRaw = MOBILE_SVG_TEMPLATES[selectedKey] || MOBILE_SVG_TEMPLATES["qr-4"] || Object.values(MOBILE_SVG_TEMPLATES)[0] || ""; // Inject the live QR code image directly into the SVG's #qr-placeholder group + // SVG içeriğine başka hiçbir şey dokunulmaz, sadece #qr-placeholder replace edilir function buildSvgWithQr(svgRaw: string, pngBase64: string): string { const qrImgTag = ` `; - // Replace the entire qr-placeholder group - const replaced = svgRaw.replace( + return svgRaw.replace( //, qrImgTag ); - // Also ensure the SVG scales properly by setting width/height to 100% - return replaced - .replace(/width="400"/, 'width="100%"') - .replace(/height="650"/, 'height="100%"'); } + useEffect(() => { (async () => { const activeRest = await getActiveRestaurant();