update(ui): sidebar in mobile screen adapt light mode
This commit is contained in:
parent
984b80b5ec
commit
af9862c019
|
@ -92,11 +92,13 @@ const Sidebar = ({ children }: { children: React.ReactNode }) => {
|
||||||
key={i}
|
key={i}
|
||||||
className={cn(
|
className={cn(
|
||||||
'relative flex flex-col items-center space-y-1 text-center w-full',
|
'relative flex flex-col items-center space-y-1 text-center w-full',
|
||||||
link.active ? 'text-white' : 'text-white/70',
|
link.active
|
||||||
|
? 'text-black dark:text-white'
|
||||||
|
: 'text-black dark:text-white/70',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{link.active && (
|
{link.active && (
|
||||||
<div className="absolute top-0 -mt-4 h-1 w-full rounded-b-lg bg-white" />
|
<div className="absolute top-0 -mt-4 h-1 w-full rounded-b-lg bg-black dark:bg-white" />
|
||||||
)}
|
)}
|
||||||
<link.icon />
|
<link.icon />
|
||||||
<p className="text-xs">{link.label}</p>
|
<p className="text-xs">{link.label}</p>
|
||||||
|
|
Loading…
Reference in New Issue