Skip to content

Commit

Permalink
magzine 顶部菜单微调
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Sep 27, 2024
1 parent 3d68b35 commit 65915e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes/magzine/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default function Header(props) {
<div className='flex gap-x-8 h-full'>
<LogoBar {...props} />
{/* 桌面端顶部菜单 */}
<div className='hidden md:flex items-center gap-x-3'>
<div className='hidden md:flex items-center gap-x-4'>
{links &&
links?.map((link, index) => (
<MenuItemDrop key={index} link={link} />
Expand Down
4 changes: 2 additions & 2 deletions themes/magzine/components/MenuItemDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export const MenuItemDrop = ({ link }) => {
{/* 子菜单 */}
{hasSubMenu && (
<ul
className={`${show ? 'visible opacity-100 top-14 ' : 'invisible opacity-0 top-10 '} absolute border bg-white dark:bg-black dark:border-gray-800 transition-all duration-300 z-20 block rounded-lg drop-shadow-lg p-4 `}>
className={`${show ? 'visible opacity-100 top-14' : 'invisible opacity-0 top-10'} absolute border bg-white dark:bg-black dark:border-gray-800 transition-all duration-150 z-20 block rounded-lg drop-shadow-lg p-4 `}>
{link?.subMenus?.map(sLink => {
return (
<li
key={sLink.id}
className='dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 dark:border-gray-800 py-3 pr-6 pl-3'>
<Link href={sLink.href} target={link?.target}>
<span className='text-sm hover:underline'>
<span className='text-sm'>
{link?.icon && <i className={sLink?.icon}> &nbsp; </i>}
{sLink.title}
</span>
Expand Down

0 comments on commit 65915e3

Please sign in to comment.