diff --git a/app/assets/stylesheets/alchemy/search.scss b/app/assets/stylesheets/alchemy/search.scss index fb4b38dbb3..5bef78116f 100644 --- a/app/assets/stylesheets/alchemy/search.scss +++ b/app/assets/stylesheets/alchemy/search.scss @@ -11,9 +11,19 @@ top: 9px; } - label { - display: block; + button { + position: absolute; + top: 0; + left: 0; + width: 30px; height: inherit; + appearance: none; + background-color: transparent; + border: 0 none; + border-radius: 0; + box-shadow: none; + margin: 0; + padding: 0; } } diff --git a/app/views/alchemy/admin/partials/_remote_search_form.html.erb b/app/views/alchemy/admin/partials/_remote_search_form.html.erb index 4df6521bf8..aae009426b 100644 --- a/app/views/alchemy/admin/partials/_remote_search_form.html.erb +++ b/app/views/alchemy/admin/partials/_remote_search_form.html.erb @@ -1,24 +1,25 @@ -<%= search_form_for @query, url: url_for( - action: 'index', - size: @size +<%= search_form_for @query, url: url_for({ + action: 'index', + size: @size, + }.merge(search_filter_params.except(:q)) ), remote: true, html: {class: 'search_form', id: nil} do |f| %> <%= hidden_field_tag("element_id", @element.blank? ? "" : @element.id) %> <%= hidden_field_tag("content_id", @content.blank? ? "" : @content.id) %>
-