[ci skip] Fix flickering search by collapsing the search in CSS

This tiny change should fix the flickering search form
in high-load environments by appending `-collapsed` state
to the angular element before loading.
pull/3179/head
Oliver Günther 9 years ago
parent fb1041b39f
commit 4e666d563a
  1. 2
      app/views/search/_mini_form.html.erb

@ -32,7 +32,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= form_tag(search_path(@project), method: :get) do %>
<%= hidden_field_tag(controller.default_search_scope, 1, :project_id => nil) if controller.default_search_scope %>
<expandable-search class="top-menu-search" ng-class="{'-collapsed': collapsed === true}">
<expandable-search class="top-menu-search -collapsed" ng-class="{'-collapsed': collapsed === true}">
<div>
<%= text_field_tag 'q', @question, :size => 20, :class => 'top-menu-search--input', :placeholder => l(:search_input_placeholder) %>
<a id="top-menu-search-button"

Loading…
Cancel
Save