Turn off the navigation panel on phone when navigating

This commit is contained in:
Peaceultime 2024-01-27 23:20:24 +01:00
parent d31486c0d5
commit 348b4e8ec9
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ onMounted(() => {
icon = document.querySelector('.site-header .clickable-icon');
icon?.removeEventListener('click', toggleLeftPanel);
icon?.addEventListener('click', toggleLeftPanel);
document.querySelectorAll('a').forEach(e => {
document.querySelector('.published-container')?.classList?.remove('is-left-column-open');
})
})
</script>