✨ feat(web): polish themed data views and add task log details
This commit is contained in:
+3
-3
@@ -32,15 +32,15 @@ import { cn } from '@/lib/utils'
|
||||
|
||||
export function ThemeSwitch() {
|
||||
const { t } = useTranslation()
|
||||
const { theme, setTheme } = useTheme()
|
||||
const { resolvedTheme, theme, setTheme } = useTheme()
|
||||
|
||||
/* Update theme-color meta tag
|
||||
* when theme is updated */
|
||||
useEffect(() => {
|
||||
const themeColor = theme === 'dark' ? '#020817' : '#fff'
|
||||
const themeColor = resolvedTheme === 'dark' ? '#2c2c2c' : '#fff'
|
||||
const metaThemeColor = document.querySelector("meta[name='theme-color']")
|
||||
if (metaThemeColor) metaThemeColor.setAttribute('content', themeColor)
|
||||
}, [theme])
|
||||
}, [resolvedTheme])
|
||||
|
||||
return (
|
||||
<DropdownMenu modal={false}>
|
||||
|
||||
Reference in New Issue
Block a user