misc: remove progress bar for instant navigations

This commit is contained in:
Xylight committed 2024-07-09 16:31:19 -07:00
1 parent 49a0e983df
commit 4b730ab415
3 files changed
+7 -5

No files matched your search

@@ -143,9 +143,9 @@
<li
in:fly|global={{
y: -8,
duration: 500,
duration: 300,
opacity: 0,
delay: 100 + index * 20,
delay: 50 + index * 20,
}}
bind:this={virtualItemEls[index]}
data-index={row.index}
+4 -2
View File
@@ -32,17 +32,19 @@
nProgress.configure({
minimum: 0.4,
trickleSpeed: 200,
showSpinner: false,
easing: 'ease-out',
speed: 300,
})
let barTimeout: any = 0
$: {
if (browser) {
if ($navigating) {
nProgress.start()
barTimeout = setTimeout(() => nProgress.start(), 100)
}
if (!$navigating) {
clearTimeout(barTimeout)
nProgress.done()
}
}
+1 -1
View File
@@ -108,4 +108,4 @@ pre {
.banner {
mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}
}