From ac90f967bce17e23d744763746fc6dd9880672b1 Mon Sep 17 00:00:00 2001 From: kinoppyd Date: Thu, 25 Apr 2024 19:24:06 +0900 Subject: [PATCH] WORKAROUND: QRCode size --- app/controllers/concerns/q_rcode.rb | 2 +- app/views/admin/triggers/show.html.erb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/concerns/q_rcode.rb b/app/controllers/concerns/q_rcode.rb index f9bea0ce..bc55ab18 100644 --- a/app/controllers/concerns/q_rcode.rb +++ b/app/controllers/concerns/q_rcode.rb @@ -12,7 +12,7 @@ def url_to_svg_qrcode(url:, color: '000', shape_rendering: 'crispEdges', module_ color:, shape_rendering:, module_size:, - standalone: false, + standalone: true, use_path: true ) end diff --git a/app/views/admin/triggers/show.html.erb b/app/views/admin/triggers/show.html.erb index d2de9957..bc00fc83 100644 --- a/app/views/admin/triggers/show.html.erb +++ b/app/views/admin/triggers/show.html.erb @@ -1,5 +1,4 @@
- <%= @qrcode.html_safe %> - -
\ No newline at end of file + +