From d18d979d6b1765556f43c5cf533b785e5ef21ef2 Mon Sep 17 00:00:00 2001 From: Marcus Heng Date: Sat, 18 Dec 2021 12:00:21 +0800 Subject: [PATCH] Remove redundant font-size class from generators Signed-off-by: Marcus Heng --- .../tailwindcss/controller/templates/view.html.erb.tt | 2 +- lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt | 2 +- lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/generators/tailwindcss/controller/templates/view.html.erb.tt b/lib/generators/tailwindcss/controller/templates/view.html.erb.tt index 913e6249..60e6f9aa 100644 --- a/lib/generators/tailwindcss/controller/templates/view.html.erb.tt +++ b/lib/generators/tailwindcss/controller/templates/view.html.erb.tt @@ -1,4 +1,4 @@
-

<%= class_name %>#<%= @action %>

+

<%= class_name %>#<%= @action %>

Find me in <%= @path %>

diff --git a/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt b/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt index e5aee531..c65409fa 100644 --- a/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt +++ b/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt @@ -4,7 +4,7 @@ <%% end %>
-

<%= human_name.pluralize %>

+

<%= human_name.pluralize %>

<%%= link_to 'New <%= human_name.downcase %>', new_<%= singular_route_name %>_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
diff --git a/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt b/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt index 3eed7024..1f7870f6 100644 --- a/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt +++ b/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt @@ -1,5 +1,5 @@
-

New <%= human_name.downcase %>

+

New <%= human_name.downcase %>

<%%= render "form", <%= singular_table_name %>: @<%= singular_table_name %> %>