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() {
let body = document.querySelector('body');
if (body.scrollHeight > window.outerHeight) {
body.style.height = 'auto';
}
let nineties = document.querySelector('.nineties-toggle');
let container = document.querySelector('.container');
container.style.height = (body.scrollHeight > window.outerHeight) ? 'auto' : body.scrollHeight - nineties.scrollHeight + 'px';
}
function initNinetiesToggle() {

View File

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

View File

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