From cee02cbc99fc8b97bd913de23041c30912faa66f Mon Sep 17 00:00:00 2001 From: Xylight Date: Tue, 30 Jul 2024 20:40:12 -0700 Subject: [PATCH] misc: re-add wait spinner --- src/routes/+layout.svelte | 2 ++ src/style/app.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 16f4a8db..c23b3bd4 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -42,9 +42,11 @@ $: { if (browser) { if ($navigating) { + document.body.classList.toggle('wait', true) barTimeout = setTimeout(() => nProgress.start(), 100) } if (!$navigating) { + document.body.classList.toggle('wait', false) clearTimeout(barTimeout) nProgress.done() } diff --git a/src/style/app.css b/src/style/app.css index 16681ec1..2bf64c75 100644 --- a/src/style/app.css +++ b/src/style/app.css @@ -35,7 +35,7 @@ body { } .wait * { - cursor: progress !important; + cursor: wait !important; } #nprogress {