Skip to content

Commit

Permalink
improve uptime bar
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Aug 9, 2023
1 parent e42c391 commit 4f9b280
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/UptimeBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ const bars = computed(() => {
<template>
<div class="flex items-center justify-evenly gap-0.5">
<div class="cursor-default" v-for="(item, index) in bars" :key="index">
<div class="tooltip" :data-tip="item.height">
<span
<div class="tooltip"
:data-tip="item.height"
:class="item.color"
>&nbsp;
</span>
>
&nbsp;
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/modules/[chain]/uptime/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,21 @@ function changeTab(v: string) {
:class="tab === '2' ? '' : 'hidden'"
>
<div v-for="({ v, signing, hex }, i) in list" :key="i">
<div class="flex items-center justify-between py-0 w-76">
<div class="flex items-center justify-between py-0 w-[305px]">
<label class="truncate text-sm">
<span class="ml-1 text-black dark:text-white"
>{{ i + 1 }}.{{ v.description.moniker }}</span
>
</label>
<div
v-if="Number(signing?.missed_blocks_counter || 0) > 10"
class="badge badge-sm bg-transparent border-0 text-red-500"
class="badge badge-sm bg-transparent border-0 text-red-500 font-bold"
>
{{ signing?.missed_blocks_counter }}
</div>
<div
v-else
class="badge badge-sm bg-transparent text-green-600 border-0"
class="badge badge-sm bg-transparent text-green-600 border-0 font-bold"
>
{{ signing?.missed_blocks_counter }}
</div>
Expand Down

0 comments on commit 4f9b280

Please sign in to comment.