Merge pull request #3690 from AntonKhorev/search-form-no-group
Stick search input and Go button together with flex instead of input group
This commit is contained in:
commit
14936150ac
1 changed files with 5 additions and 7 deletions
|
@ -2,14 +2,12 @@
|
|||
<form method="GET" action="<%= search_path %>" class="search_form px-1 py-2">
|
||||
<div class="row gx-2 mx-0">
|
||||
<div class="col">
|
||||
<div class="input-group flex-nowrap">
|
||||
<div class='query_wrapper position-relative flex-grow-1'>
|
||||
<div class="d-flex">
|
||||
<span class='position-relative flex-grow-1'>
|
||||
<%= link_to t("site.search.where_am_i"), "#", :class => "describe_location position-absolute", :title => t("site.search.where_am_i_title") %>
|
||||
<%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm", :dir => "auto" %>
|
||||
</div>
|
||||
<div class="input-group-append">
|
||||
<%= submit_tag t("site.search.submit_text"), :class => "btn btn-sm btn-primary", :data => { :disable_with => false } %>
|
||||
</div>
|
||||
<%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm rounded-0 rounded-start border-end-0", :dir => "auto" %>
|
||||
</span>
|
||||
<%= submit_tag t("site.search.submit_text"), :class => "btn btn-sm btn-primary rounded-0 rounded-end", :data => { :disable_with => false } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
|
|
Loading…
Add table
Reference in a new issue