Skip to content

Commit

Permalink
Make button text shorter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 14, 2024
1 parent ee16e2f commit 077af94
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/views/_tailwind/applications/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,22 @@
<div class="mt-12">
<%# TODO: This button currently has much larger left and right padding than the design %>
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: "#add-comment", icon: :edit) do %>
Make a comment on this application
Make a comment on now
<% end %>
</div>

<div class="mt-2">
<div class="flex flex-col items-baseline gap-2 mt-2 md:flex-row md:gap-4">
<%# TODO: Handle situation when authority name is very long %>
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: external_application_path(@application), icon: :external) do %>
View more at <%= @application.authority.full_name %> website
<% end %>
<div class="shrink-0">
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: external_application_path(@application), icon: :external) do %>
More info
<% end %>
</div>
<div class="text-2xl font-semibold text-navy">on the <%= @application.authority.full_name %> website</div>
</div>

<%# TODO: Point this button at a new page for sharing the application %>
<div class="mt-2">
<div class="mt-6 md:mt-2">
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :inverse_primary, href: "#", icon: :share) do %>
Share this application
<% end %>
Expand Down

0 comments on commit 077af94

Please sign in to comment.