From d56070827b25e821b610a2eed87317bd3907dc5b Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Sat, 25 Jul 2026 01:09:25 +0300 Subject: [PATCH] fix broken svg --- app/views/icons/_device_desktop.html.erb | 3 +-- app/views/mfa_setup/_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/icons/_device_desktop.html.erb b/app/views/icons/_device_desktop.html.erb index 3a6ba14f..7f69a1c7 100644 --- a/app/views/icons/_device_desktop.html.erb +++ b/app/views/icons/_device_desktop.html.erb @@ -1,8 +1,7 @@ - - + diff --git a/app/views/mfa_setup/_form.html.erb b/app/views/mfa_setup/_form.html.erb index 96602342..c931b48e 100644 --- a/app/views/mfa_setup/_form.html.erb +++ b/app/views/mfa_setup/_form.html.erb @@ -3,7 +3,7 @@ <%= t('use_an_authenticator_mobile_app_like_google_authenticator_or_1password_to_scan_the_qr_code_below') %>

- <%== RQRCode::QRCode.new(@provision_url).as_svg(viewbox: true, svg_attributes: { class: 'md:w-80 md:h-80 my-4 mx-auto' }) %> + <%== RQRCode::QRCode.new(@provision_url).as_svg(viewbox: true, svg_attributes: { class: 'md:w-80 md:h-80 my-4 mx-auto' }).sub(/\A<\?xml[^>]*\?>/, '') %>
<%= f.text_field :otp_attempt, required: true, placeholder: 'XXX-XXX', class: 'base-input text-center' %>