diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-15 16:28:21 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-15 16:28:21 +0200 |
| commit | 445362ed2f8591d54a3c34cb3c5a69049aefa8c6 (patch) | |
| tree | 064f2d2e936639fa6ca412ed662203b144172c3d /app/views/elevations | |
| parent | aa984c8c0cad4ac4bff74fc38f60c0e06af6fc50 (diff) | |
Style totp input fields so that they work better on mobile
Diffstat (limited to 'app/views/elevations')
| -rw-r--r-- | app/views/elevations/new.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
| 10 | <div class="layout_row_label"><%= t(".code") %></div> | 10 | <div class="layout_row_label"><%= t(".code") %></div> |
| 11 | <div class="layout_row_content"> | 11 | <div class="layout_row_content"> |
| 12 | <%= text_field_tag :code, nil, :autocomplete => "one-time-code", | 12 | <%= text_field_tag :code, nil, :autocomplete => "one-time-code", |
| 13 | :inputmode => "numeric", :autofocus => true %> | 13 | :inputmode => "numeric", :autofocus => true, :maxlength => 6, |
| 14 | :pattern => "[0-9]{6}", :class => "otp_code" %> | ||
| 14 | </div> | 15 | </div> |
| 15 | </div> | 16 | </div> |
| 16 | 17 | ||
