mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-05 21:47:48 +01:00
Fix: properly handle classlist with light theme (#5612)
This commit is contained in:
@@ -524,7 +524,7 @@ export default function Wrapper({ initialSettings, fallback }) {
|
||||
const body = document.body;
|
||||
|
||||
html.classList.remove("dark", "scheme-dark", "scheme-light");
|
||||
html.classList.add(theme === "dark" ? "dark" : "");
|
||||
html.classList.toggle("dark", theme === "dark");
|
||||
html.classList.add(theme === "dark" ? "scheme-dark" : "scheme-light");
|
||||
|
||||
html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));
|
||||
|
||||
Reference in New Issue
Block a user