Fixes the search button wrapping to the next line in Firefox. Also fixes the search box to be full width with no gap between the search box and the search button.
17 lines
586 B
Plaintext
17 lines
586 B
Plaintext
<%# path, tags %>
|
|
|
|
<section id="search-box">
|
|
<h1>Search</h1>
|
|
<%= form_tag(path, method: "get", id: "search-box-form") do %>
|
|
<% if params[:raw] %>
|
|
<%= hidden_field_tag :raw, params[:raw] %>
|
|
<% end %>
|
|
<% if params[:random] %>
|
|
<%= hidden_field_tag :random, params[:random] %>
|
|
<% end %>
|
|
<%= text_field_tag("tags", tags, :id => tags_dom_id, :"data-shortcut" => "q", :"data-autocomplete" => "tag-query") %>
|
|
<button id="search-box-submit" type="submit"><i class="fas fa-search"></i></button>
|
|
<%= hidden_field_tag "ms", "1" %>
|
|
<% end %>
|
|
</section>
|