[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:
parent
6c8fefb0c9
commit
27f922168a
3 changed files with 126 additions and 25 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue