Added a compact view for shopping list (for mobile shopping) (closes #453)

This commit is contained in:
Bernd Bestel
2020-01-24 22:05:08 +01:00
parent fd5a72264d
commit ad54253d72
8 changed files with 62 additions and 11 deletions

View File

@@ -219,7 +219,14 @@ $("#selectedRecipeToggleFullscreenButton").on('click', function(e)
$("#selectedRecipeCard .card-header").toggleClass("fixed-top");
$("#selectedRecipeCard .card-body").toggleClass("mt-5");
window.location.hash = "fullscreen";
if ($("body").hasClass("fullscreen-card"))
{
window.location.hash = "#fullscreen";
}
else
{
window.history.replaceState(null, null, " ");
}
});
$('#servings-scale').keyup(function(event)