Further optimized shopping list compact view (references #453)

This commit is contained in:
Bernd Bestel
2020-02-01 12:35:06 +01:00
parent debb29ddaa
commit 683ea0984c
3 changed files with 7 additions and 10 deletions

View File

@@ -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 {

View File

@@ -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");