app/components/avo/panel_component.html.erb in avo-2.9.2.pre1 vs app/components/avo/panel_component.html.erb in avo-2.10.0

- old
+ new

@@ -1,51 +1,50 @@ -<div <%== data_attributes %>> +<%= content_tag :div, data: data_attributes, class: classes do %> <% if render_header? %> <div class="flex-1 flex flex-col xl:flex-row justify-between mb-4"> <div class="overflow-hidden flex flex-col"> <% if display_breadcrumbs? %> <div class="breadcrumbs truncate mb-2"> <%= helpers.render_breadcrumbs(separator: helpers.svg('chevron-right', class: 'inline-block h-3 stroke-current relative top-[-1px] ml-1' )) if Avo.configuration.display_breadcrumbs %> </div> <% end %> - <div class="text-2xl tracking-normal font-semibold text-gray-800 truncate items-center flex flex-1" data-target="title"> - <span><%= @title %></span> + <span><%= @name %></span> </div> - <% if description.present? %> - <div class="text-sm tracking-normal font-medium text-gray-600" data-target="description"> - <%== description %> - </div> + <div class="text-sm tracking-normal font-medium text-gray-600" data-target="description"> + <%== description %> + </div> <% end %> </div> - <% if tools.present? %> <div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0"> <%= tools %> </div> <% end %> </div> <% end %> - - <div class="relative <%= white_panel_classes %> <%= @body_classes %>"> - <%= body %> - </div> - - <div class="relative"> - <%= bare_content %> - </div> - - <% if footer_tools.present? %> + <% if body? %> + <div class="relative <%= white_panel_classes %> <%= @body_classes %>"> + <%= body %> + </div> + <% end %> + <% if bare_content? %> + <div class="relative"> + <%= bare_content %> + </div> + <% end %> + <% if footer_tools? %> <div class="<%= white_panel_classes %> p-4 flex-1 flex flex-col xl:flex-row justify-between mt-6"> <div class="flex-1 w-full flex flex-col sm:flex-row xl:justify-end sm:items-end space-y-2 sm:space-y-0 sm:space-x-2 mt-4 xl:mt-0"> <%= footer_tools %> </div> </div> <% end %> - - <div class="flex justify-end w-full"> - <div> - <%= footer %> + <% if footer? %> + <div class="flex justify-end w-full"> + <div> + <%= footer %> + </div> </div> - </div> -</div> + <% end %> +<% end %>