From 18ae9071ad9cba90d41e5bef9160bae7d720b493 Mon Sep 17 00:00:00 2001 From: Zuoling Rong Date: Sat, 3 May 2025 15:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8=E7=AB=AFui?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/style.css | 3 --- src/script.js | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/style.css b/assets/style.css index 4c62ae6..52645a8 100644 --- a/assets/style.css +++ b/assets/style.css @@ -237,7 +237,6 @@ body.loaded .layout { visibility: hidden; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); z-index: 950; /* 调整遮罩层z-index,处于按钮与弹出面板之间 */ - backdrop-filter: blur(4px); } .overlay.active { @@ -966,7 +965,6 @@ body .content.expanded { justify-content: center; align-items: center; z-index: 1000; - backdrop-filter: blur(4px); } .modal.active { @@ -1183,7 +1181,6 @@ body .content.expanded { left: 0; width: 100%; padding: 1rem; - background-color: var(--bg-color); transform: translateY(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 95; diff --git a/src/script.js b/src/script.js index 7b5940d..3fc9e0b 100644 --- a/src/script.js +++ b/src/script.js @@ -562,6 +562,10 @@ document.addEventListener('DOMContentLoaded', () => { resetSearch(); } else if (e.key === 'Enter') { performSearch(searchInput.value); + // 在移动设备上,执行搜索后自动关闭搜索面板 + if (isMobile() && isSearchOpen) { + closeAllPanels(); + } } });