diff --git a/app/views/features/_search_boxes.html.erb b/app/views/features/_search_boxes.html.erb index fcc6b9b677..1a03a4e258 100644 --- a/app/views/features/_search_boxes.html.erb +++ b/app/views/features/_search_boxes.html.erb @@ -4,12 +4,11 @@ class: "bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-4" do |f| %>
- +
<%= f.search_field :query, value: params[:query], placeholder: "Search features and tips…", oninput: "this.form.requestSubmit()", - class: "w-full bg-white border border-gray-300 rounded-lg px-3 py-2 pr-10 - focus:ring-blue-500 focus:border-blue-500" %> + class: search_field_class(extra: "pr-10") %> @@ -17,41 +16,41 @@
- + <%= f.select :area, options_for_select([ [ "All areas", "" ] ] + @areas.map { |a| [ a[:label], a[:key] ] }, params[:area]), {}, - class: "w-full px-3 py-2 border border-gray-300 rounded-lg" %> + class: search_field_class %>
- + <%= f.select :display_status, options_for_select([ [ "All audiences", "" ] ] + @statuses.map { |key, meta| [ meta[:label], key ] }, params[:display_status]), {}, - class: "w-full px-3 py-2 border border-gray-300 rounded-lg" %> + class: search_field_class %>
- + <%= f.date_field :released_from, value: params[:released_from], onchange: "this.form.requestSubmit()", - class: "w-full px-3 py-2 border border-gray-300 rounded-lg" %> + class: search_field_class %>
- + <%= f.date_field :released_to, value: params[:released_to], onchange: "this.form.requestSubmit()", - class: "w-full px-3 py-2 border border-gray-300 rounded-lg" %> + class: search_field_class %>
- + <%= f.select :direction, options_for_select([ [ "Newest first", "desc" ], [ "Oldest first", "asc" ] ], params[:direction].presence || "desc"), {}, - class: "w-full px-3 py-2 border border-gray-300 rounded-lg" %> + class: search_field_class %>