Commit f7c949c631375b2a29384756d93d99ca6ef2f274

Authored by Macartur Sousa
1 parent a2459221

Fixed style and array.total

Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb
... ... @@ -25,7 +25,7 @@ class ElasticsearchPluginController &lt; ApplicationController
25 25 def define_results
26 26 @query = params[:query]
27 27 @results = process_results
28   - @hits = @results.total
  28 + @hits = ( @results.try(:total) || 0 )
29 29 end
30 30  
31 31 def define_searchable_types
... ...
plugins/elasticsearch/public/style.css
... ... @@ -3,7 +3,8 @@
3 3 }
4 4  
5 5 .controller-elasticsearch_plugin .sidebar {
6   - min-width: 240px;
  6 + min-width: 250px;
  7 + max-width: 250px;
7 8 }
8 9  
9 10 .controller-elasticsearch_plugin .search_form {
... ...