From c17b0cb5539999e422cf40a9e250f8967e75253e Mon Sep 17 00:00:00 2001 From: Ayaka <26200808+KiritaniAyaka@users.noreply.github.com> Date: Tue, 23 Aug 2022 22:34:57 +0800 Subject: [PATCH] Update main.js --- source/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {