Skip to content

Commit 8654684

Browse files
committed
feat: improve disconnect indicator
1 parent 2ea18f3 commit 8654684

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1+
<script setup lang="ts">
2+
function reload() {
3+
window.location.reload()
4+
}
5+
</script>
6+
17
<template>
28
<Teleport to="body">
39
<div
410
v-if="wsConnectingDebounced"
511
flex="~ col justify-center items-center gap-4"
6-
fixed bottom-0 left-0 right-0 top-0 z-2147483646 p5 text-lg backdrop-blur-5 n-glass-effect
12+
fixed bottom-0 left-0 right-0 top-0 z-2147483646 p5 text-lg backdrop-blur-4 n-glass-effect
713
>
8-
<div flex="~" items-center justify-center>
14+
<div flex-auto />
15+
<div flex="~" mt-8 items-center justify-center>
916
<NuxtLogo h-8 />
1017
</div>
11-
<div border="t base" my2 h-1px w-10 />
12-
<div flex="~ gap-2" items-center text-xl op50>
18+
<div flex="~ gap-2" items-center op50>
1319
<NIcon icon="i-carbon-wifi-off" />
1420
Disconnected from Server
1521
</div>
16-
<div flex="~ gap-2" animate-pulse items-center text-xl text-orange>
22+
<div border="t base" my2 h-1px w-10 />
23+
<div flex="~ gap-2" animate-pulse items-center text-xl text-yellow>
1724
<NIcon icon="i-carbon-circle-dash" animate-spin />
1825
Retrying...
1926
</div>
27+
<div flex-auto />
28+
<NButton n="sm yellow" px2 py0 op40 @click="reload()">
29+
Reload DevTools Page
30+
</NButton>
2031
</div>
2132
</Teleport>
2233
</template>

0 commit comments

Comments
 (0)