[Users] Fix login input styles (#827)

This commit is contained in:
Cinder 2024-12-18 09:31:54 -08:00 committed by GitHub
parent ba18a9d7b5
commit afce6b614c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ div#c-users {
margin-bottom: 1em;
}
.simple_form.session {
.simple_form.session_form {
box-sizing: border-box;
max-width: 360px;
margin: 0;

View File

@ -1,5 +1,5 @@
<div id="c-sessions"><div id="a-new">
<%= simple_form_for(:session, url: session_path) do |f| %>
<%= simple_form_for(:session, url: session_path, html: { class: "session_form" }) do |f| %>
<h1>Sign in</h1>
<%= f.input(:url, as: :hidden, input_html: { value: params[:url] }) %>
<%= f.input(:name, label: "Username") %>