diff --git a/themes/heo/components/MenuItemDrop.js b/themes/heo/components/MenuItemDrop.js
index 0b9c3053..48f80ad8 100644
--- a/themes/heo/components/MenuItemDrop.js
+++ b/themes/heo/components/MenuItemDrop.js
@@ -25,8 +25,12 @@ export const MenuItemDrop = ({ link }) => {
{/* 含子菜单的按钮 */}
{hasSubMenu && (
<>
-
+
{link?.icon &&
} {link?.name}
+ {/* 主菜单下方的安全区域 */}
+ {show && (
+
+ )}
>
)}
@@ -34,7 +38,7 @@ export const MenuItemDrop = ({ link }) => {
{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-xl bg-white dark:bg-[#1e1e1e] transition-all duration-300 z-20 absolute`}>
{link.subMenus.map((sLink, index) => {
return (
- {
{hasSubMenu && (
<>
-
+
{link?.icon &&
} {link?.name}
+ {/* 主菜单下方的安全区域 */}
+ {show && (
+
+ )}
>
)}
@@ -41,7 +45,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 (
- {
{/* 子菜单 */}
{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 (