Add padding to QR code images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user