From 60fd2dd9647b255e3664dc0657fe51c27d7f9f83 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Mon, 12 Feb 2024 04:27:28 +0000 Subject: [PATCH] Fix layout of buttons on mobile for "add your own comment" when not signed in --- app/components/tailwind/button_component.html.erb | 4 ++-- app/views/_tailwind/applications/show.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/tailwind/button_component.html.erb b/app/components/tailwind/button_component.html.erb index 84ca7b16b..4f294087f 100644 --- a/app/components/tailwind/button_component.html.erb +++ b/app/components/tailwind/button_component.html.erb @@ -1,13 +1,13 @@ <% if @tag == :a %> <%= link_to @href, @options do %> -
+
<% if @icon %>
<%= render Tailwind::Icon.new(name: @icon) %>
<% end %>
<%= content %>
<% end %> <% elsif @tag == :button %> <%= button_tag @options do %> -
+
<% if @icon %>
<%= render Tailwind::Icon.new(name: @icon) %>
<% end %>
<%= content %>
diff --git a/app/views/_tailwind/applications/show.html.erb b/app/views/_tailwind/applications/show.html.erb index 9d7008d40..746c86f7b 100644 --- a/app/views/_tailwind/applications/show.html.erb +++ b/app/views/_tailwind/applications/show.html.erb @@ -179,7 +179,7 @@

Be polite, clear and to the point so your comment gets listened to.

-
+
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: new_user_registration_path) do %> Create an account <% end %>