mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-06-05 21:01:46 +08:00
Merge pull request #1032 from KiritaniAyaka/patch-2
fix: fix mixed layout when screen eq 768px
This commit is contained in:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user