mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 03:59:25 +00:00
fix: Wrong color display when uptime is 80 & 98
The UI display red color if the uptime value is exactly 80 and 98 percent. Use `>=` fix this issue.
This commit is contained in:
parent
d09542cee0
commit
a5313bb17d
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@
|
||||||
export let uptime: number;
|
export let uptime: number;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if uptime > 98}
|
{#if uptime >= 98}
|
||||||
<span class="text-green-800 dark:text-green-500">{uptime}%</span>
|
<span class="text-green-800 dark:text-green-500">{uptime}%</span>
|
||||||
{:else if uptime < 98 && uptime > 80}
|
{:else if uptime < 98 && uptime >= 80}
|
||||||
<span class="text-sky-800 dark:text-sky-500">{uptime}%</span>
|
<span class="text-sky-800 dark:text-sky-500">{uptime}%</span>
|
||||||
{:else if uptime < 80 && uptime > 75}
|
{:else if uptime < 80 && uptime > 75}
|
||||||
<span class="text-orange-800 dark:text-orange-300">{uptime}%</span>
|
<span class="text-orange-800 dark:text-orange-300">{uptime}%</span>
|
||||||
|
|
Loading…
Reference in a new issue