diff --git a/public/css/grocy.css b/public/css/grocy.css index a5936971..c8d0ddca 100644 --- a/public/css/grocy.css +++ b/public/css/grocy.css @@ -60,13 +60,6 @@ a.discrete-link:focus { background-color: #ffffff; } -.fullscreen-card .fullscreen-no-gutters { - margin-left: 0 !important; - margin-right: 0 !important; - padding-left: 0 !important; - padding-right: 0 !important; -} - /* Fixes smooth scrolling on iOS */ #sidebarResponsive, .fullscreen { diff --git a/public/viewjs/shoppinglist.js b/public/viewjs/shoppinglist.js index 7a4e73da..07a97d71 100644 --- a/public/viewjs/shoppinglist.js +++ b/public/viewjs/shoppinglist.js @@ -359,6 +359,10 @@ $(".switch-view-mode-button").on('click', function(e) e.preventDefault(); $("#shoppinglist-main").toggleClass("fullscreen"); + $("#shoppinglist-main").toggleClass("px-0 mx-0"); + $("#shoppinglist-main").children(":first").toggleClass("px-0 mx-0"); + $(".dataTables_scrollHeadInner").width(""); // Remove absolute width on element set by DataTables + $(".dataTables_scrollHeadInner table").width(""); // Remove absolute width on element set by DataTables $("body").toggleClass("fullscreen-card"); $("#shopping-list-normal-view-button").toggleClass("d-none"); $("#mainNav").toggleClass("d-none"); diff --git a/views/shoppinglist.blade.php b/views/shoppinglist.blade.php index 2bf10713..ac1994d0 100644 --- a/views/shoppinglist.blade.php +++ b/views/shoppinglist.blade.php @@ -93,8 +93,8 @@ -
-
+
+
{{ $__t('Normal view') }} @@ -161,7 +161,7 @@ @include('components.calendarcard')
-
+
{{ $__t('Save') }}