mirror of
https://github.com/unraid/api.git
synced 2025-12-31 21:49:57 -06:00
fix: resolve header flash when background color is set (#1796)
## Summary - rely on the existing Pinia persisted state instead of manual localStorage hydration - reapply CSS variables after persisted hydration so custom header colors show immediately ## Testing - Not run (not requested) ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_691e5a1d052c8323973847eb5833fbb9)
This commit is contained in:
@@ -341,6 +341,7 @@ export const useThemeStore = defineStore(
|
||||
afterHydrate: (ctx) => {
|
||||
const store = ctx.store as ReturnType<typeof useThemeStore>;
|
||||
store.setTheme(store.theme);
|
||||
store.setCssVars();
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user