Fixed scrolling did not work when showing a recipe in fullscreen mode (fixes #76)

This commit is contained in:
Bernd Bestel 2018-09-30 09:41:22 +02:00
parent be326a5211
commit 77d82f22dc
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 8 additions and 6 deletions

View File

@ -50,12 +50,13 @@ a.discrete-link:focus {
}
.fullscreen {
z-index: 9999;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
overflow: auto;
}
.form-check-input.is-valid ~ .form-check-label,

View File

@ -158,4 +158,5 @@ recipesTables.on('select', function(e, dt, type, indexes)
$("#selectedRecipeToggleFullscreenButton").on('click', function(e)
{
$("#selectedRecipeCard").toggleClass("fullscreen");
$("#selectedRecipeCard .card-header").toggleClass("fixed-top");
});