fix grid styling

This commit is contained in:
2022-02-18 18:21:56 -05:00
parent 8fae6c4661
commit 889e08e42c
15 changed files with 37 additions and 43 deletions

View File

@ -1,4 +1,4 @@
<div class="mb-8 flex flex-col justify-center items-center space-y-4">
<div class="mx-auto mb-8 max-w-2xl flex flex-col justify-center items-center space-y-4">
<h1 class="title text-primary-600 text-xl">
<%= dgettext("actions", "Log in") %>
</h1>
@ -8,8 +8,7 @@
[
as: :user,
class:
"flex flex-col sm:grid sm:grid-cols-3" <>
"justify-center items-center text-center space-y-4"
"flex flex-col sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center"
],
fn f -> %>
<%= if @error_message do %>
@ -31,7 +30,7 @@
) %>
<%= checkbox(f, :remember_me, class: "checkbox col-span-2") %>
<%= submit(dgettext("actions", "Log in"), class: "mx-auto my-4 btn btn-primary col-span-3") %>
<%= submit(dgettext("actions", "Log in"), class: "mx-auto btn btn-primary col-span-3") %>
<% end %>
<hr class="hr" />