fix: 修复在亮色模式下navbar-more位置处自定义面板icon颜色不匹配问题

pull/70/head
moonrailgun 2 years ago
parent 469f34134c
commit 6be47e1f57

@ -16,11 +16,14 @@ export const NavbarCustomNavItem: React.FC<{
<NavbarNavItem <NavbarNavItem
key={panelInfo.name} key={panelInfo.name}
name={panelInfo.label} name={panelInfo.label}
className={clsx({ 'bg-gray-700': withBg })} className={clsx('text-3xl cursor-pointer', {
'bg-gray-700 text-white': withBg,
'text-gray-600 dark:text-white': !withBg,
})}
to={`/main/custom/${panelInfo.name}`} to={`/main/custom/${panelInfo.name}`}
data-testid={`navbar-custom-${panelInfo.name}`} data-testid={`navbar-custom-${panelInfo.name}`}
> >
<Icon className="text-3xl text-white" icon={panelInfo.icon} /> <Icon icon={panelInfo.icon} />
</NavbarNavItem> </NavbarNavItem>
); );
}); });

@ -65,6 +65,7 @@ export const NavbarNavItem: React.FC<
/> />
</div> </div>
)} )}
{inner} {inner}
<div className="absolute right-0 bottom-0"> <div className="absolute right-0 bottom-0">

Loading…
Cancel
Save