From e6e478f5b077d1357fffca90a6f6bd6d789eebaf Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 16 Sep 2023 17:40:07 +0300 Subject: [PATCH 1/1] Make search input a direct child of input group --- app/assets/stylesheets/common.scss | 7 ++++--- app/views/layouts/_search.html.erb | 12 ++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index b95d1fcd6..1d4056451 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1055,11 +1055,12 @@ tr.turn:hover { .search_form { background-color: $lightgrey; + #query { + z-index: 0; + } + .describe_location { - top: 6px; - right: 6px; font-size: 10px; - color: $blue; } } diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index 2f785079c..dc72cea83 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -2,12 +2,12 @@
-
- - <%= 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 rounded-0 rounded-start border-end-0", :dir => "auto" %> - - <%= submit_tag t("site.search.submit_text"), :class => "btn btn-sm btn-primary rounded-0 rounded-end", :data => { :disable_with => false } %> +
+ <%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :autocomplete => "on", :class => "form-control form-control-sm", :dir => "auto" %> +
+ <%= link_to t("site.search.where_am_i"), "#", :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") %> +
+ <%= submit_tag t("site.search.submit_text"), :class => "btn btn-sm btn-primary", :data => { :disable_with => false } %>
-- 2.39.5