Skip to content

Commit

Permalink
feat(ui): fullscreen disconnect indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 17, 2023
1 parent 2344afd commit a158b1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/devtools/client/components/DisconnectIndicator.vue
@@ -1,18 +1,18 @@
<script setup lang="ts">
</script>

<template>
<Teleport to="body">
<div
v-if="wsError || wsConnecting"
border="t base"
fixed bottom-0 left-0 right-0 z-2147483646 p5 glass-effect
flex="~ col justify-center items-center gap-2"
fixed bottom-0 left-0 right-0 top-0 z-2147483646 p5 text-lg backdrop-blur-5 glass-effect
>
<div flex="~" mt--10 items-center justify-center>
<NuxtLogo h-14 />
</div>
<div v-if="wsError" flex="~ gap-2" items-center text-rose>
<NIcon icon="i-carbon-wifi-off" />
WebSocket disconnected
</div>
<div v-else-if="wsConnecting" flex="~ gap-2" animate-pulse items-center text-yellow>
<div v-else flex="~ gap-2" animate-pulse items-center text-yellow>
<NIcon icon="i-carbon-circle-dash" animate-spin />
Connecting to the server...
</div>
Expand Down

0 comments on commit a158b1b

Please sign in to comment.