diff --git a/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb b/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb index 25f83e7..f0e1067 100644 --- a/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb +++ b/plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb @@ -25,7 +25,7 @@ class ElasticsearchPluginController < ApplicationController def define_results @query = params[:query] @results = process_results - @hits = @results.total + @hits = ( @results.try(:total) || 0 ) end def define_searchable_types diff --git a/plugins/elasticsearch/public/style.css b/plugins/elasticsearch/public/style.css index 47eeea5..1b681e0 100644 --- a/plugins/elasticsearch/public/style.css +++ b/plugins/elasticsearch/public/style.css @@ -3,7 +3,8 @@ } .controller-elasticsearch_plugin .sidebar { - min-width: 240px; + min-width: 250px; + max-width: 250px; } .controller-elasticsearch_plugin .search_form { -- libgit2 0.21.2