Update ThemeSwitcher.tsx

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

View File

@ -22,17 +22,14 @@ 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', { className={cn('capitalize leading-none ml-2', {
'text-sm ml-1.5': theme === 'system', 'text-sm': theme === 'system',
'ml-2': theme !== 'system',
})} })}
> >
{theme} {theme}
</span> </span>
</span>
<span className="cursor-pointer"> <span className="cursor-pointer">
<ChevronRight <ChevronRight
className={cn('transition duration-300', { className={cn('transition duration-300', {