Update ThemeSwitcher.tsx

This commit is contained in:
cond0r 2022-11-30 08:25:06 +02:00
parent e222a52585
commit 04f78226c8

View File

@ -22,16 +22,13 @@ const ThemeSwitcher = () => {
} }
aria-label="Theme Switcher" aria-label="Theme Switcher"
> >
<span className="flex items-center"> <ThemeIcon width={20} height={20} theme={theme} />
<ThemeIcon width={20} height={20} theme={theme} /> <span
<span className={cn('capitalize leading-none ml-2', {
className={cn('capitalize leading-none', { 'text-sm': theme === 'system',
'text-sm ml-1.5': theme === 'system', })}
'ml-2': theme !== 'system', >
})} {theme}
>
{theme}
</span>
</span> </span>
<span className="cursor-pointer"> <span className="cursor-pointer">
<ChevronRight <ChevronRight