Merge pull request #1032 from KiritaniAyaka/patch-2

fix: fix mixed layout when screen eq 768px
This commit is contained in:
Jerry Wong
2022-08-24 00:00:20 +08:00
committed by GitHub
Unverified
+1 -1
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) {