This commit is contained in:
Jerry
2022-09-03 15:57:20 +08:00
Unverified
+1 -1
View File
@@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function () {
} }
let hideMenuIndex = '' let hideMenuIndex = ''
if (window.innerWidth < 768) hideMenuIndex = true if (window.innerWidth <= 768) hideMenuIndex = true
else hideMenuIndex = blogNameWidth + menusWidth + searchWidth > $nav.offsetWidth - 120 else hideMenuIndex = blogNameWidth + menusWidth + searchWidth > $nav.offsetWidth - 120
if (hideMenuIndex) { if (hideMenuIndex) {