From b83ccce1c92980ea8cd2096883f3991e59e55c2d Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Thu, 29 Jan 2026 09:57:52 +0100 Subject: [PATCH] Add padding to QR code images --- app/controllers/qr_codes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/qr_codes_controller.rb b/app/controllers/qr_codes_controller.rb index aa8ca8334..a49809876 100644 --- a/app/controllers/qr_codes_controller.rb +++ b/app/controllers/qr_codes_controller.rb @@ -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