From 6ee388fe51f80ad636570576fe1ac35bd4bd48f3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 6 Jul 2023 11:41:54 +0200 Subject: [PATCH] Fix container issues --- app/views/spree/layouts/_admin_body.html.haml | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/app/views/spree/layouts/_admin_body.html.haml b/app/views/spree/layouts/_admin_body.html.haml index b7f91907be..4ca442a850 100644 --- a/app/views/spree/layouts/_admin_body.html.haml +++ b/app/views/spree/layouts/_admin_body.html.haml @@ -41,18 +41,16 @@ = yield :page_actions - content_class = content_for?(:sidebar) ? "with-sidebar" : "" + - usefull_width_columns = content_for?(:sidebar) ? "twelve columns" : "sixteen columns" #content{class: content_class} - .row - .container - - div_class = content_for?(:sidebar) ? 'twelve columns' : 'sixteen columns' - %div{:class => div_class} - - if content_for?(:table_filter) - - table_filter_class = content_for?(:sidebar) ? 'twelve columns' : 'sixteen columns' - #table-filter{:class => table_filter_class} - %fieldset - %legend{:align => "center"}= yield :table_filter_title - = yield :table_filter - + .container + .row + - if content_for?(:table_filter) + #table-filter{:class => usefull_width_columns} + %fieldset + %legend{:align => "center"}= yield :table_filter_title + = yield :table_filter + %div{:class => usefull_width_columns} = yield - if content_for?(:sidebar) %aside#sidebar.four.columns