mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-11 07:37:14 -07:00
fix: CSS rendering bug, again (#2555)
* idk man * that wasn't supposed to be there
This commit is contained in:
parent
3e5596f898
commit
a22d500603
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ const darkModePlugin: Plugin = ({ $vuetify }, _) => {
|
|||
const isDark = useDark();
|
||||
|
||||
// Vuetify metadata is bugged and doesn't render dark mode fully when called immediately
|
||||
// Adding a 0.5 millisecond delay fixes this problem
|
||||
// Adding a 100 millisecond delay fixes this problem
|
||||
// https://stackoverflow.com/questions/69399797/vuetify-darkmode-colors-wrong-after-page-reload
|
||||
setTimeout( () => { $vuetify.theme.dark = isDark.value; }, 0.5);
|
||||
setTimeout(() => { $vuetify.theme.dark = isDark.value; }, 100);
|
||||
};
|
||||
|
||||
export default darkModePlugin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue