Skip to content

Commit

Permalink
On small screen stop select box from overflowing. Fixes #1760
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 6, 2024
1 parent fccbb2b commit 444cc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/_tailwind/contact_messages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<%= f.label :reason, "I'm getting in touch because", class: "block mb-3" %>
<%# TODO: Make sure that we can't choose "Please select" %>
<%# TODO: The grey border here does not match the design but matches other form elements %>
<%= f.select :reason, [["Please select", ""]] + ContactMessage::REASONS_LONG, {}, class: "block" %>
<%= f.select :reason, [["Please select", ""]] + ContactMessage::REASONS_LONG, {}, class: "block w-full sm:w-auto" %>
<%= f.error :reason, class: "mt-2" %>
</div>
<div class="mt-8">
Expand Down

0 comments on commit 444cc76

Please sign in to comment.