mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-04-30 16:22:29 +00:00
update(ui): sidebar in mobile screen adapt light mode
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user