diff --git a/package-lock.json b/package-lock.json
index af9bf622..9af4fd01 100644
Binary files a/package-lock.json and b/package-lock.json differ
diff --git a/package.json b/package.json
index 2be7b7bc..39959a28 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
"hurdak": "github:ConsignCloud/hurdak",
"nostr-tools": "github:fiatjaf/nostr-tools#1b798b2",
"ramda": "^0.28.0",
+ "svelte-loading-spinners": "^0.3.4",
"svelte-routing": "^1.6.0",
"throttle-debounce": "^5.0.0",
"vite-plugin-node-polyfills": "^0.5.0"
diff --git a/src/App.svelte b/src/App.svelte
index 93dc9f4e..b350f5c8 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -50,10 +50,14 @@
modal.subscribe($modal => {
// Keep scroll position on body, but don't allow scrolling
if ($modal) {
- scrollY = window.scrollY
- document.body.style.top = `-${scrollY}px`
- document.body.style.position = `fixed`
+ // This is not idempotent, so don't duplicate it
+ if (document.body.style.position !== 'fixed') {
+ scrollY = window.scrollY
+
+ document.body.style.top = `-${scrollY}px`
+ document.body.style.position = `fixed`
+ }
} else {
document.body.style = ''
window.scrollTo(0, scrollY)
@@ -77,11 +81,15 @@
Loading notes...
-