diff --git a/themes/fukasawa/components/AsideLeft.js b/themes/fukasawa/components/AsideLeft.js index b0ea2313..0fe42a91 100644 --- a/themes/fukasawa/components/AsideLeft.js +++ b/themes/fukasawa/components/AsideLeft.js @@ -70,8 +70,8 @@ function AsideLeft(props) { } }, [isCollapsed]) + const isReverse = siteConfig('LAYOUT_SIDEBAR_REVERSE') const position = useMemo(() => { - const isReverse = JSON.parse(siteConfig('LAYOUT_SIDEBAR_REVERSE')) if (isCollapsed) { if (isReverse) { return 'right-2' diff --git a/themes/fukasawa/components/MenuItemDrop.js b/themes/fukasawa/components/MenuItemDrop.js index ccc77549..1de272c2 100644 --- a/themes/fukasawa/components/MenuItemDrop.js +++ b/themes/fukasawa/components/MenuItemDrop.js @@ -7,9 +7,11 @@ export const MenuItemDrop = ({ link }) => { return (
  • changeShow(true)} + onMouseOver={() => { + changeShow(true) + }} onMouseOut={() => changeShow(false)} - className='relative py-1 duration-500 justify-between text-gray-500 dark:text-gray-300 hover:text-black hover:underline cursor-pointer flex flex-nowrap items-center '> + className='relative py-1 mb-1.5 duration-500 justify-between text-gray-500 dark:text-gray-300 hover:text-black hover:underline cursor-pointer flex flex-nowrap items-center '> {!hasSubMenu && ( { {hasSubMenu && (
    + className={`px-2 fas fa-chevron-left duration-500 transition-all ${show ? ' rotate-180' : ''}`}>
    )} @@ -42,7 +44,7 @@ export const MenuItemDrop = ({ link }) => { {/* 子菜单 */} {hasSubMenu && (