+
{link?.icon &&
} {link?.name}
+ {/* 主菜单下方的安全区域 */}
+ {
+
+ }
>
)}
From 2ac4f9f93171fa404299bc99e97e338d033fb010 Mon Sep 17 00:00:00 2001
From: LooseLi <1329307562@qq.com>
Date: Mon, 24 Mar 2025 15:03:02 +0800
Subject: [PATCH 3/5] =?UTF-8?q?fix(hexo=E4=B8=BB=E9=A2=98=E5=AD=90?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=97=AA=E7=83=81=E9=97=AE=E9=A2=98)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
themes/hexo/components/MenuItemDrop.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/themes/hexo/components/MenuItemDrop.js b/themes/hexo/components/MenuItemDrop.js
index 7e1896d7..03509abe 100644
--- a/themes/hexo/components/MenuItemDrop.js
+++ b/themes/hexo/components/MenuItemDrop.js
@@ -29,10 +29,12 @@ export const MenuItemDrop = ({ link }) => {
{hasSubMenu && (
<>
-
+
{link?.icon &&
} {link?.name}
+ {/* 主菜单下方的安全区域 */}
+
>
)}
@@ -41,7 +43,7 @@ export const MenuItemDrop = ({ link }) => {
{hasSubMenu && (
+ className={`${show ? 'visible opacity-100 top-12 pointer-events-auto' : 'invisible opacity-0 top-20 pointer-events-none'} drop-shadow-md overflow-hidden rounded-md text-black dark:text-white bg-white dark:bg-black transition-all duration-300 z-20 absolute block `}>
{link.subMenus.map((sLink, index) => {
return (
-
Date: Mon, 24 Mar 2025 15:19:51 +0800
Subject: [PATCH 4/5] =?UTF-8?q?fix(=E4=BC=98=E5=8C=96=E5=AD=90=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95=E9=97=AA=E7=83=81=E4=BB=A3=E7=A0=81)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
themes/heo/components/MenuItemDrop.js | 4 ++--
themes/hexo/components/MenuItemDrop.js | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/themes/heo/components/MenuItemDrop.js b/themes/heo/components/MenuItemDrop.js
index 04334cc1..48f80ad8 100644
--- a/themes/heo/components/MenuItemDrop.js
+++ b/themes/heo/components/MenuItemDrop.js
@@ -28,9 +28,9 @@ export const MenuItemDrop = ({ link }) => {
{link?.icon &&
} {link?.name}
{/* 主菜单下方的安全区域 */}
- {
+ {show && (
- }
+ )}
>
)}
diff --git a/themes/hexo/components/MenuItemDrop.js b/themes/hexo/components/MenuItemDrop.js
index 03509abe..09d4eb3b 100644
--- a/themes/hexo/components/MenuItemDrop.js
+++ b/themes/hexo/components/MenuItemDrop.js
@@ -34,7 +34,9 @@ export const MenuItemDrop = ({ link }) => {
{/* 主菜单下方的安全区域 */}
-
+ {show && (
+
+ )}
>
)}
From 950c3cae2319f79db18cce700abb4aafbf3acbb5 Mon Sep 17 00:00:00 2001
From: LooseLi <1329307562@qq.com>
Date: Mon, 24 Mar 2025 15:49:13 +0800
Subject: [PATCH 5/5] =?UTF-8?q?fix(=E5=AD=90=E8=8F=9C=E5=8D=95=E9=97=AA?=
=?UTF-8?q?=E7=83=81=E9=97=AE=E9=A2=98)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
themes/magzine/components/MenuItemDrop.js | 2 +-
themes/matery/components/MenuItemDrop.js | 8 ++++++--
themes/movie/components/MenuItemDrop.js | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/themes/magzine/components/MenuItemDrop.js b/themes/magzine/components/MenuItemDrop.js
index 8aef9a52..f0dcde4c 100644
--- a/themes/magzine/components/MenuItemDrop.js
+++ b/themes/magzine/components/MenuItemDrop.js
@@ -52,7 +52,7 @@ export const MenuItemDrop = ({ link }) => {
{/* 子菜单 */}
{hasSubMenu && (
+ className={`${show ? 'visible opacity-100 top-14 pointer-events-auto' : 'invisible opacity-0 top-20 pointer-events-none'} p-1 absolute border bg-white dark:bg-black dark:border-gray-800 transition-all duration-150 z-20 block rounded-lg drop-shadow-lg`}>
{link?.subMenus?.map(sLink => {
return (
- {
{hasSubMenu && (
<>
-
+
{link?.icon &&
} {link?.name}
+ {/* 主菜单下方的安全区域 */}
+ {show && (
+
+ )}
>
)}
@@ -40,7 +44,7 @@ export const MenuItemDrop = ({ link }) => {
{hasSubMenu && (
+ className={`${show ? 'visible opacity-100 top-12 pointer-events-auto' : 'invisible opacity-0 top-20 pointer-events-none'} drop-shadow-md overflow-hidden rounded-md bg-white transition-all duration-300 z-20 absolute block `}>
{link.subMenus.map((sLink, index) => {
return (
- {
{hasSubMenu && (
+ className={`${show ? 'visible opacity-100 top-14 pointer-events-auto' : 'invisible opacity-0 top-20 pointer-events-none'} drop-shadow-md overflow-hidden rounded-md text-black dark:text-white bg-white dark:bg-black transition-all duration-300 z-30 absolute block `}>
{link.subMenus.map((sLink, index) => {
return (