mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Add option to disable automatic switching to compact shoppinglist view on mobile devices (#551)
This commit is contained in:
@@ -384,7 +384,7 @@ if (window.location.hash === "#compact")
|
||||
}
|
||||
|
||||
// Auto switch to compact view on mobile
|
||||
if ($(window).width() < 768 & window.location.hash !== "#compact")
|
||||
if ($(window).width() < 768 & window.location.hash !== "#compact" && !BoolVal(Grocy.UserSettings.shopping_list_disable_auto_compact_view))
|
||||
{
|
||||
$("#shopping-list-compact-view-button").click();
|
||||
}
|
||||
|
Reference in New Issue
Block a user