fix: NodesStatus

This commit is contained in:
austnv
2026-06-21 23:27:30 +03:00
parent a34a646c71
commit 7f227fcf05
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -26,7 +26,7 @@
<div
v-for="host in sortedHosts"
:key="host.address"
class="flex items-center justify-between bg-white dark:bg-gray-900 rounded-xl px-4 py-2.5 border transition hover:shadow-md"
class="flex items-center justify-between bg-white dark:bg-gray-900 rounded-xl px-4 py-2.5 border"
:class="host.isOnline ? 'border-green-500/30' : 'border-red-500/30 opacity-60'"
>
<div class="flex items-center gap-3">
@@ -38,13 +38,13 @@
<span class="font-semibold text-gray-800 dark:text-white">{{ host.name }}</span>
<!-- Индикатор состояния (вместо online/offline) -->
<span class="relative flex h-3 w-3">
<span class="relative flex h-2 w-2">
<span
class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75"
:class="host.isOnline ? 'bg-green-500' : 'bg-red-500'"
></span>
<span
class="relative inline-flex rounded-full h-3 w-3"
class="relative inline-flex rounded-full h-2 w-2"
:class="host.isOnline ? 'bg-green-600' : 'bg-red-600'"
></span>
</span>
@@ -61,7 +61,7 @@
}"
>
<Wifi :size="14" />
{{ host.ping }}ms
{{ host.ping }} ms
</span>
<span v-else class="text-gray-300 font-mono"></span>
</div>