From 445362ed2f8591d54a3c34cb3c5a69049aefa8c6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 15 Aug 2026 16:28:21 +0200 Subject: Style totp input fields so that they work better on mobile --- app/views/elevations/new.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/elevations/new.html.erb') diff --git a/app/views/elevations/new.html.erb b/app/views/elevations/new.html.erb index 8dd64e78..8e1b59c2 100644 --- a/app/views/elevations/new.html.erb +++ b/app/views/elevations/new.html.erb @@ -10,7 +10,8 @@
<%= t(".code") %>
<%= text_field_tag :code, nil, :autocomplete => "one-time-code", - :inputmode => "numeric", :autofocus => true %> + :inputmode => "numeric", :autofocus => true, :maxlength => 6, + :pattern => "[0-9]{6}", :class => "otp_code" %>
-- cgit v1.3