misc: re-add wait spinner

This commit is contained in:
Xylight committed 2024-07-30 20:40:12 -07:00
1 parent c9281d0486
commit cee02cbc99
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -42,9 +42,11 @@
$: { $: {
if (browser) { if (browser) {
if ($navigating) { if ($navigating) {
document.body.classList.toggle('wait', true)
barTimeout = setTimeout(() => nProgress.start(), 100) barTimeout = setTimeout(() => nProgress.start(), 100)
} }
if (!$navigating) { if (!$navigating) {
document.body.classList.toggle('wait', false)
clearTimeout(barTimeout) clearTimeout(barTimeout)
nProgress.done() nProgress.done()
} }
+1 -1
View File
@@ -35,7 +35,7 @@ body {
} }
.wait * { .wait * {
cursor: progress !important; cursor: wait !important;
} }
#nprogress { #nprogress {