diff --git a/app/javascript/draw.js b/app/javascript/draw.js index 916bd4dc..40e5d31e 100644 --- a/app/javascript/draw.js +++ b/app/javascript/draw.js @@ -1,7 +1,7 @@ import SignaturePad from 'signature_pad' import { cropCanvasAndExportToPNG } from './submission_form/crop_canvas' -window.customElements.define('signature-form', class extends HTMLElement { +window.customElements.define('draw-signature', class extends HTMLElement { connectedCallback () { const scale = 3 diff --git a/app/views/submit_form_draw_signature/show.html.erb b/app/views/submit_form_draw_signature/show.html.erb index 641f3323..9ed24f51 100644 --- a/app/views/submit_form_draw_signature/show.html.erb +++ b/app/views/submit_form_draw_signature/show.html.erb @@ -15,7 +15,7 @@ <%= render 'shared/posthog' if ENV['POSTHOG_TOKEN'] %> - + <%= form_for '', url: submit_form_path(params[:slug]), html: { style: 'max-width: 900px; width: 100%; margin-bottom: 120px' }, method: :put do |f| %>
@@ -46,6 +46,6 @@ Return back to your desktop device to complete the form or continue on mobile
-
+