From: Anton Khorev Date: Thu, 11 Apr 2024 22:12:59 +0000 (+0300) Subject: Set search input z-index with Bootstrap utility class X-Git-Tag: live~111^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3b2d34d86b75ec6acafcfa32ead9dd45e7d012a4 Set search input z-index with Bootstrap utility class z-index here keeps "Where is this?" above the input when the input is focused. --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 1ccdc7871..42046c0a6 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -815,10 +815,6 @@ tr.turn:hover { } .search_form { - #query { - z-index: 0; - } - .describe_location { font-size: 10px; } diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index c7939aa01..5d612dd78 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -3,7 +3,7 @@
- <%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm", :dir => "auto" %> + <%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm z-0", :dir => "auto" %>
<%= button_tag t("site.search.where_am_i"), :type => "button", :class => "describe_location position-absolute end-0 me-1 btn btn-sm btn-outline-primary border-0 bg-transparent", :title => t("site.search.where_am_i_title") %>