BUGFIX: remove unnecessary scrolling

This commit is contained in:
Jeroen De Meerleer 2022-01-27 15:03:28 +01:00
parent 06c9af12d1
commit 0ae17fd1d9
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 14 additions and 10 deletions

View File

@ -10,9 +10,9 @@ document.addEventListener("readystatechange", event => {
function initOverflow() { function initOverflow() {
let body = document.querySelector('body'); let body = document.querySelector('body');
if (body.scrollHeight > window.outerHeight) { let nineties = document.querySelector('.nineties-toggle');
body.style.height = 'auto'; let container = document.querySelector('.container');
} container.style.height = (body.scrollHeight > window.outerHeight) ? 'auto' : body.scrollHeight - nineties.scrollHeight + 'px';
} }
function initNinetiesToggle() { function initNinetiesToggle() {

View File

@ -3,10 +3,15 @@
@import "~bootstrap/scss/utilities"; @import "~bootstrap/scss/utilities";
$utilities: map-merge( $utilities: map-merge(
$utilities, ( $utilities,
"width": map-merge( (
map-get($utilities, "width"), "width":
( responsive: true ), map-merge(
), map-get($utilities, "width"),
(
responsive: true
)
)
) )
); );

View File

@ -1,4 +1,3 @@
RewriteEngine on RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L] RewriteRule . index.php [L]