diff --git a/.gitea/workflows/1-ci.yml b/.gitea/workflows/1-ci.yml index 74972b8..ac64d7b 100644 --- a/.gitea/workflows/1-ci.yml +++ b/.gitea/workflows/1-ci.yml @@ -16,4 +16,4 @@ jobs: run: bunx @inlang/paraglide-js compile - run: bun run check - run: bunx eslint - - run: bunx prettier --check . \ No newline at end of file + - run: bunx prettier --check . diff --git a/.gitea/workflows/2-cd.yml b/.gitea/workflows/2-cd.yml index 902fc23..21dd694 100644 --- a/.gitea/workflows/2-cd.yml +++ b/.gitea/workflows/2-cd.yml @@ -41,4 +41,4 @@ jobs: rsync -avz -e "ssh -i private_key -o StrictHostKeyChecking=no" dist/ $DEPLOY_USER@$DEPLOY_HOST:$TARGET_PATH/ - rm private_key \ No newline at end of file + rm private_key diff --git a/src/lib/components/lnv/Sidebar.svelte b/src/lib/components/lnv/Sidebar.svelte index 6ec1790..c69610f 100644 --- a/src/lib/components/lnv/Sidebar.svelte +++ b/src/lib/components/lnv/Sidebar.svelte @@ -84,21 +84,25 @@ $effect(() => { const fullHeight = window.innerHeight - 20 - 40 - 10; if (fullscreen[view.current.type]) { - if(sidebarHeight != fullHeight) { - if(window.innerWidth < 768) { + if (sidebarHeight != fullHeight) { + if (window.innerWidth < 768) { hideSearch = true; map.ignorePadding = true; } previousHeight = sidebarHeight; sidebarHeight = fullHeight; - requestAnimationFrame(() => { map.updateMapPadding(); } ); + requestAnimationFrame(() => { + map.updateMapPadding(); + }); } } else { hideSearch = false; - if(sidebarHeight == fullHeight) { + if (sidebarHeight == fullHeight) { map.ignorePadding = false; sidebarHeight = previousHeight; - requestAnimationFrame(() => { map.updateMapPadding(); } ); + requestAnimationFrame(() => { + map.updateMapPadding(); + }); } } }); diff --git a/src/lib/components/lnv/map.svelte.ts b/src/lib/components/lnv/map.svelte.ts index 0c7a6da..1e04bbd 100644 --- a/src/lib/components/lnv/map.svelte.ts +++ b/src/lib/components/lnv/map.svelte.ts @@ -10,7 +10,10 @@ export const map = $state({ zoom: 0, ignorePadding: false, updateMapPadding: () => { - if (document.querySelector("#sidebar") == null || map.ignorePadding) { + if ( + document.querySelector("#sidebar") == null || + map.ignorePadding + ) { map._setPadding({ top: 0, right: 0, diff --git a/src/lib/components/lnv/sidebar/MainSidebar.svelte b/src/lib/components/lnv/sidebar/MainSidebar.svelte index 70b6f06..43f5f71 100644 --- a/src/lib/components/lnv/sidebar/MainSidebar.svelte +++ b/src/lib/components/lnv/sidebar/MainSidebar.svelte @@ -1,5 +1,10 @@