Add padding to QR code images

This commit is contained in:
Alexander Zaytsev
2026-01-29 09:57:52 +01:00
parent 231fa311c1
commit b83ccce1c9
+1 -1
View File
@@ -6,7 +6,7 @@ class QrCodesController < ApplicationController
qr_code_svg = RQRCode::QRCode
.new(QrCodeLink.from_signed(params[:id]).url)
.as_svg(viewbox: true, fill: :white, color: :black)
.as_svg(viewbox: true, fill: :white, color: :black, offset: 16)
render svg: qr_code_svg
end