Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/scripts/expand-navbar.js2
diff --git a/src/scripts/expand-navbar.js b/src/scripts/expand-navbar.js
index 614a948..4cea31c 100644
--- a/src/scripts/expand-navbar.js
+++ b/src/scripts/expand-navbar.js
@@ -1,7 +1,7 @@
const expandBtn = document.getElementById('expandNavbarBtn');
const sidebarElem = document.getElementById('sidebar');
-if (localStorage.getItem('navbar') === 'hidden' || window.innerWidth <= 610) {
+if (localStorage.getItem('navbar') === 'hidden' || window.innerWidth <= 610 || window.innerHeight <= 610) {
expandBtn.innerText = '\u25BC';
sidebarElem.classList.add('sidebar-hidden');
}