Skip to content

Commit

Permalink
Fix layout of buttons on mobile for "add your own comment" when not s…
Browse files Browse the repository at this point in the history
…igned in
  • Loading branch information
mlandauer committed Feb 12, 2024
1 parent c4827d0 commit 60fd2dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/components/tailwind/button_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<% if @tag == :a %>
<%= link_to @href, @options do %>
<div class="flex items-baseline justify-center gap-4">
<div class="flex items-baseline justify-center gap-4 text-center">
<% if @icon %><div><%= render Tailwind::Icon.new(name: @icon) %></div><% end %>
<div><%= content %></div>
</div>
<% end %>
<% elsif @tag == :button %>
<%= button_tag @options do %>
<div class="flex items-baseline justify-center gap-4">
<div class="flex items-baseline justify-center gap-4 text-center">
<% if @icon %><div><%= render Tailwind::Icon.new(name: @icon) %></div><% end %>
<div><%= content %></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/_tailwind/applications/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<div class="px-4 py-3 bg-light-grey">
<p class="text-2xl opacity-50 text-navy">Be polite, clear and to the point so your comment gets listened to.</p>
<div class="flex justify-center py-12">
<div class="inline-grid grid-cols-2 gap-3">
<div class="grid gap-3 sm:inline-grid sm:grid-cols-2">
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: new_user_registration_path) do %>
Create an account
<% end %>
Expand Down

0 comments on commit 60fd2dd

Please sign in to comment.