0
0
Fork 0

[Glitch] Fix page body not being scrollable in admin layout

Port SCSS changes from b9a8b38844 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Eugen Rochko 2019-09-20 10:52:14 +02:00 committed by Thibaut Girka
parent 6c8fefb0c9
commit 27f922168a
3 changed files with 126 additions and 25 deletions

View file

@ -114,6 +114,16 @@ function main() {
this.parentElement.parentElement.nextElementSibling.classList.toggle('hidden');
});
});
delegate(document, '.sidebar__toggle__icon', 'click', () => {
const target = document.querySelector('.sidebar ul');
if (target.style.display === 'block') {
target.style.display = 'none';
} else {
target.style.display = 'block';
}
});
}
loadPolyfills().then(main).catch(error => {