Compare commits

..

3 Commits

Author SHA1 Message Date
shamoon
e65f8c46f9 Update package.json
Some checks failed
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Docs / Linting Checks (push) Has been cancelled
Docs / Test Build Docs (push) Has been cancelled
Docs / Build & Deploy Docs (push) Has been cancelled
2025-08-02 18:52:19 -04:00
shamoon
082e1316c1 Fix: set body background color (#5611)
Some checks failed
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Crowdin Action / Crowdin Sync (push) Has been cancelled
2025-08-02 17:44:35 -04:00
shamoon
a4b5e72d82 Fix: properly handle classlist with light theme (#5612) 2025-08-02 17:38:00 -04:00
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "homepage", "name": "homepage",
"version": "1.4.1", "version": "1.4.2",
"private": true, "private": true,
"scripts": { "scripts": {
"preinstall": "npx only-allow pnpm", "preinstall": "npx only-allow pnpm",

View File

@@ -524,7 +524,7 @@ export default function Wrapper({ initialSettings, fallback }) {
const body = document.body; const body = document.body;
html.classList.remove("dark", "scheme-dark", "scheme-light"); 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.add(theme === "dark" ? "scheme-dark" : "scheme-light");
html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-"))); html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));

View File

@@ -30,12 +30,13 @@ body,
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: rgb(var(--bg-color));
} }
#background { #background {
position: fixed; position: fixed;
inset: 0; inset: 0;
z-index: -1; z-index: 0;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;