Skip to content

Commit d1abd37

Browse files
revert class ordering
1 parent 2d25125 commit d1abd37

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

lib/generators/tailwindcss/authentication/templates/app/views/passwords/edit.html.erb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<div class="w-full mx-auto md:w-2/3">
1+
<div class="mx-auto md:w-2/3 w-full">
22
<%%= render "flashes" %>
33

4-
<h1 class="text-4xl font-bold">Update your password</h1>
4+
<h1 class="font-bold text-4xl">Update your password</h1>
55

66
<%%= form_with url: password_path(params[:token]), method: :put, class: "contents" do |form| %>
77
<div class="my-5">
8-
<%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block w-full px-3 py-2 mt-2 border border-gray-400 rounded-md shadow outline-none focus:outline-blue-600" %>
8+
<%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
99
</div>
1010

1111
<div class="my-5">
12-
<%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block w-full px-3 py-2 mt-2 border border-gray-400 rounded-md shadow outline-none focus:outline-blue-600" %>
12+
<%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
1313
</div>
1414

1515
<div class="inline">

lib/generators/tailwindcss/authentication/templates/app/views/passwords/new.html.erb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<div class="w-full mx-auto md:w-2/3">
1+
<div class="mx-auto md:w-2/3 w-full">
22
<%%= render "flashes" %>
33

4-
<h1 class="text-4xl font-bold">Forgot your password?</h1>
4+
<h1 class="font-bold text-4xl">Forgot your password?</h1>
55

66
<%%= form_with url: passwords_path, class: "contents" do |form| %>
77
<div class="my-5">
8-
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block w-full px-3 py-2 mt-2 border border-gray-400 rounded-md shadow outline-none focus:outline-blue-600" %>
8+
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
99
</div>
1010

1111
<div class="inline">

lib/generators/tailwindcss/authentication/templates/app/views/sessions/new.html.erb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<div class="w-full mx-auto md:w-2/3">
1+
<div class="mx-auto md:w-2/3 w-full">
22
<%%= render "flashes" %>
33

4-
<h1 class="text-4xl font-bold">Sign in</h1>
4+
<h1 class="font-bold text-4xl">Sign in</h1>
55

66
<%%= form_with url: session_url, class: "contents" do |form| %>
77
<div class="my-5">
8-
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block w-full px-3 py-2 mt-2 border border-gray-400 rounded-md shadow focus:outline-blue-600" %>
8+
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
99
</div>
1010

1111
<div class="my-5">
12-
<%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block w-full px-3 py-2 mt-2 border border-gray-400 rounded-md shadow focus:outline-blue-600" %>
12+
<%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
1313
</div>
1414

1515
<div class="col-span-6 sm:flex sm:items-center sm:gap-4">

lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<div class="w-full">
44
<%%= render "flashes" %>
55

6-
<div class="flex items-center justify-between">
7-
<h1 class="text-4xl font-bold"><%= human_name.pluralize %></h1>
6+
<div class="flex justify-between items-center">
7+
<h1 class="font-bold text-4xl"><%= human_name.pluralize %></h1>
88
<%%= link_to "New <%= human_name.downcase %>", new_<%= singular_route_name %>_path, class: "rounded-md px-3.5 py-2.5 bg-blue-600 hover:bg-blue-500 text-white block font-medium" %>
99
</div>
1010

@@ -17,7 +17,7 @@
1717
</p>
1818
<%% end %>
1919
<%% else %>
20-
<p class="my-10 text-center">No <%= human_name.downcase.pluralize %> found.</p>
20+
<p class="text-center my-10">No <%= human_name.downcase.pluralize %> found.</p>
2121
<%% end %>
2222
</div>
2323
</div>

lib/generators/tailwindcss/scaffold/templates/show.html.erb.tt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<%% content_for :title, "Showing <%= human_name.downcase %>" %>
22

3-
<div class="w-full md:w-2/3">
3+
<div class="md:w-2/3 w-full">
44
<%%= render "flashes" %>
55

6-
<h1 class="text-4xl font-bold">Showing <%= human_name.downcase %></h1>
6+
<h1 class="font-bold text-4xl">Showing <%= human_name.downcase %></h1>
77

88
<%%= render @<%= singular_table_name %> %>
99

0 commit comments

Comments
 (0)