app/views/avo/home/failed_to_load.html.erb in avo-2.11.1 vs app/views/avo/home/failed_to_load.html.erb in avo-2.11.2.pre.1

- old
+ new

@@ -1,23 +1,17 @@ <%= render Avo::TurboFrameWrapperComponent.new(params[:turbo_frame]) do %> <% classes = 'absolute inset-auto left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2' label = t 'avo.failed_to_load' %> - <div class="relative flex-1 py-12"> - <div class="relative block text-gray-300 h-40 w-full"> - <%= svg 'avocado', class: "#{classes} h-20 text-gray-400" %> - <%= svg 'code', class: "#{classes} h-8 -ml-20 -mt-12" %> - <%= svg 'fire', class: "#{classes} h-8 -ml-10 -mt-24" %> - <%= svg 'color-swatch', class: "#{classes} h-8 ml-8 -mt-24" %> - <%= svg 'globe', class: "#{classes} h-8 ml-20 -mt-12" %> - <%= svg 'library', class: "#{classes} h-8 -ml-20 mt-4" %> - <%= svg 'photograph', class: "#{classes} h-8 ml-20 mt-4" %> + <div class="relative flex-1 py-4"> + <div class="relative block text-gray-300 h-64 w-full"> + <%= svg 'failed_to_load', class: "#{classes} h-52 text-gray-400" %> </div> - <div class="relative block text-center text-lg text-gray-400 font-semibold -mt-10"><%= label %> <span class="border-b-2 border-dashed"><%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %></span> frame</div> + <div class="relative block text-center text-lg text-gray-400 font-semibold pb-6"><%= label %> <span class="border-b-2 border-dashed"><%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %></span> frame</div> + <% if Rails.env.development? %> + <div class="text-center text-sm w-full pb-3"> + This is not an issue with Avo. Use <%= link_to 'this page', params[:src], target: :_blank %> to see why this frame failed to load. + </div> + <% end %> </div> - <% if Rails.env.development? %> - <div class="text-center text-sm w-full"> - This is not an issue with Avo. Click <%= link_to 'this link', params[:src], target: :_blank %> to see why this frame failed to load. - </div> - <% end %> <% end %>