app/components/avo/panel_component.html.erb in avo-2.16.1.pre.1.nativefields vs app/components/avo/panel_component.html.erb in avo-2.17.0

- old
+ new

@@ -22,11 +22,20 @@ </div> <% end %> </div> <% end %> <% if body? %> - <div class="relative <%= white_panel_classes %> <%= @body_classes %>"> - <%= body %> + <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:gap-4 w-full"> + <div class="flex-1 overflow-auto <% if sidebar? %> w-2/3 <% end %>"> + <div class="relative <%= white_panel_classes %> <%= @body_classes %>"> + <%= body %> + </div> + </div> + <% if sidebar? %> + <div class="w-full sm:w-1/3 flex-shrink-0 h-full <%= white_panel_classes %>"> + <%= sidebar %> + </div> + <% end %> </div> <% end %> <% if bare_content? %> <div class="relative"> <%= bare_content %>