diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-10-13 20:29:50 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-13 20:29:50 +0200 |
commit | e9f062e9138e677f77804f4be7882fe7abfd37ee (patch) | |
tree | df5fe44519a11a3ce6295acbfbbeb74d261da2dc | |
parent | 565dbed5b61b0d2113bc072a1d5f3be68dc5c5ea (diff) |
Fix colormode on chrome
-rw-r--r-- | layouts/default.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/default.vue b/layouts/default.vue index 35c816b..6a2f26f 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,11 @@ <template> - <div :class="$colorMode.preference == 'light' ? 'light' : 'dark'"> + <div + :class=" + $colorMode.preference == 'light' || $colorMode.preference == 'system' + ? 'light' + : 'dark' + " + > <VHeader /> <main> <Nuxt /> |