This commit is contained in:
nub31
2026-03-16 23:35:26 +01:00
parent 7aea328d4f
commit 8ad6fda412
5 changed files with 79 additions and 54 deletions

View File

@@ -26,7 +26,7 @@
</Link>
<MapPoint
class="card mt-5 min-h-96 grow overflow-hidden rounded-md border-2"
class="card mt-5 min-h-140 grow overflow-hidden rounded-md border-2"
coordinates={[
{
latitude: 62.48303957042255,

View File

@@ -14,9 +14,9 @@ function createThemeToggler() {
}
if (defaultValue) {
document.documentElement.style.colorScheme = "dark";
document.body.dataset.theme = "dark";
} else {
document.documentElement.style.colorScheme = "light";
document.body.dataset.theme = "light";
}
const { subscribe, update } = writable(defaultValue);
@@ -26,9 +26,9 @@ function createThemeToggler() {
set: (value: boolean) => {
update(() => value);
if (value) {
document.documentElement.style.colorScheme = "dark";
document.body.dataset.theme = "dark";
} else {
document.documentElement.style.colorScheme = "light";
document.body.dataset.theme = "light";
}
localStorage.setItem("dark_theme", JSON.stringify(value));