Skip to content

Commit

Permalink
update(ui): sidebar in mobile screen adapt light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
WanQuanXie committed May 28, 2024
1 parent 984b80b commit af9862c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ const Sidebar = ({ children }: { children: React.ReactNode }) => {
key={i}
className={cn(
'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 && (
<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 />
<p className="text-xs">{link.label}</p>
Expand Down

0 comments on commit af9862c

Please sign in to comment.