Update main.js

This commit is contained in:
Ayaka
2022-08-23 22:34:57 +08:00
committed by GitHub
Unverified
parent c866315b87
commit c17b0cb553

View File

@@ -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) {