Skip to content

Commit

Permalink
Use fixed width for voucher redemption selectize field
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Sep 23, 2024
1 parent 9ab1030 commit 8ecb489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/vouchers_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def claim_select_field(form, user, voucher)
form.select(field_name,
options_for_select(options),
{ prompt: prompt },
{ multiple: true, class: "selectize me-2 w-50",
{ multiple: true, class: "selectize me-2", style: "width: 20rem",
data: { cy: "claim-select" } })
end
end
3 changes: 2 additions & 1 deletion app/views/profile/_verify_voucher.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
html: { class: "form-inline",
data: { cy: "verify-voucher-form"} } do |f| %>
<div class="form-group d-flex">
<%= f.text_field :secure_hash, class: "form-control me-2 w-50",
<%= f.text_field :secure_hash, class: "form-control me-2",
style: "width: 20rem;",
data: { cy: "secure-hash-input" } %>
<%= f.submit t('buttons.verify_voucher'), class: "btn btn-primary",
data: { cy: "verify-voucher-submit" } %>
Expand Down

0 comments on commit 8ecb489

Please sign in to comment.