diff --git a/source/js/main.js b/source/js/main.js index c185dbe..707aca6 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function () { } let hideMenuIndex = '' - if (window.innerWidth < 768) hideMenuIndex = true + if (window.innerWidth <= 768) hideMenuIndex = true else hideMenuIndex = blogNameWidth + menusWidth + searchWidth > $nav.offsetWidth - 120 if (hideMenuIndex) {