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"
>
<span className="flex items-center">
<ThemeIcon width={20} height={20} theme={theme} />
<span
className={cn('capitalize leading-none', {
'text-sm ml-1.5': theme === 'system',
'ml-2': theme !== 'system',
})}
>
{theme}
</span>
<ThemeIcon width={20} height={20} theme={theme} />
<span
className={cn('capitalize leading-none ml-2', {
'text-sm': theme === 'system',
})}
>
{theme}
</span>
<span className="cursor-pointer">
<ChevronRight