]> git.openstreetmap.org Git - rails.git/commitdiff
Stick search input and Go button together with flex instead of input group
authorAnton Khorev <tony29@yandex.ru>
Wed, 14 Sep 2022 20:15:28 +0000 (23:15 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 14 Sep 2022 20:15:28 +0000 (23:15 +0300)
app/views/layouts/_search.html.erb

index 9ce1265b412828f45040be2f7d8ad9b6c988d3bf..a301ad2ce815084b055a8ba4ddec17dccd1c2c70 100644 (file)
@@ -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">