...
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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));
|
||||
Reference in New Issue
Block a user