fix next主题二级菜单图标间隙

This commit is contained in:
tangly1024
2025-07-13 12:39:14 +08:00
parent c5e94337eb
commit c68dcb34e2

View File

@@ -8,7 +8,7 @@ export const MenuItemDrop = ({ link }) => {
return (
<li
onMouseOver={() => changeShow(true)}
onMouseOut={() => changeShow(false)}
// onMouseOut={() => changeShow(false)}
className='relative py-1.5 px-5 duration-300 text-base justify-between hover:bg-gray-700 hover:text-white hover:shadow-lg cursor-pointer font-light flex flex-nowrap items-center '>
{!hasSubMenu && (
<Link
@@ -51,7 +51,7 @@ export const MenuItemDrop = ({ link }) => {
target={link?.target}
className='my-auto h-9 pl-4 items-center justify-start flex not:last-child:border-b-0 border-b text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 dark:border-gray-800 '>
{sLink.icon && (
<i className={`${sLink.icon} w-4 text-center`} />
<i className={`${sLink.icon} w-4 mr-2 text-center`} />
)}
{sLink.name}
{sLink.slot}