mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-16 07:26:35 +00:00
Adjust layout
This commit is contained in:
@@ -79,7 +79,7 @@ function NavigationGroup({ group, className }) {
|
||||
<li className={clsx('relative mt-6', className)}>
|
||||
<motion.h2
|
||||
layout="position"
|
||||
className="text-xs font-semibold text-zinc-900 dark:text-white"
|
||||
className="text-s font-semibold text-zinc-900 dark:text-white"
|
||||
>
|
||||
{group.title}
|
||||
</motion.h2>
|
||||
@@ -104,34 +104,6 @@ function NavigationGroup({ group, className }) {
|
||||
<NavLink href={link.href} active={link.href === router.pathname}>
|
||||
{link.title}
|
||||
</NavLink>
|
||||
{/*<AnimatePresence mode="popLayout" initial={false}>*/}
|
||||
{/* {link.href === router.pathname && sections.length > 0 && (*/}
|
||||
{/* <motion.ul*/}
|
||||
{/* role="list"*/}
|
||||
{/* initial={{ opacity: 0 }}*/}
|
||||
{/* animate={{*/}
|
||||
{/* opacity: 1,*/}
|
||||
{/* transition: { delay: 0.1 },*/}
|
||||
{/* }}*/}
|
||||
{/* exit={{*/}
|
||||
{/* opacity: 0,*/}
|
||||
{/* transition: { duration: 0.15 },*/}
|
||||
{/* }}*/}
|
||||
{/* >*/}
|
||||
{/* {sections.map((section) => (*/}
|
||||
{/* <li key={section.id}>*/}
|
||||
{/* <NavLink*/}
|
||||
{/* href={`${link.href}#${section.id}`}*/}
|
||||
{/* tag={section.tag}*/}
|
||||
{/* isAnchorLink*/}
|
||||
{/* >*/}
|
||||
{/* {section.title}*/}
|
||||
{/* </NavLink>*/}
|
||||
{/* </li>*/}
|
||||
{/* ))}*/}
|
||||
{/* </motion.ul>*/}
|
||||
{/* )}*/}
|
||||
{/*</AnimatePresence>*/}
|
||||
</motion.li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user