app/components/avo/index/resource_grid_component.html.erb in avo-1.25.2 vs app/components/avo/index/resource_grid_component.html.erb in avo-2.0.0

- old
+ new

@@ -1,13 +1,13 @@ <% if @resources.present?%> - <div class="w-full grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 2xl:grid-cols-6 gap-6"> + <div class="w-full grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 gap-6 mt-8"> <% @resources.each_with_index do |resource, index| %> <% cache_if Avo.configuration.cache_resources_on_index_view, resource.cache_hash(@parent_model) do %> <%= render(Avo::Index::GridItemComponent.new(resource: resource, reflection: @reflection, parent_model: @parent_model)) %> <% end %> <% end %> </div> <% else %> - <div class="bg-white rounded-xl shadow-xl"> - <%= helpers.empty_state @resource.name.downcase.pluralize %> + <div class="bg-white rounded shadow-panel"> + <%= helpers.empty_state resource_name: @resource.name.downcase.pluralize, related_name: params[:related_name], view_type: :grid %> </div> <% end %>