feat(web): polish themed data views and add task log details

This commit is contained in:
t0ng7u
2026-07-11 14:30:06 +08:00
parent b2a890e755
commit 308e3e347a
79 changed files with 1376 additions and 727 deletions
+3 -3
View File
@@ -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}>