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:
ditatompel 2024-06-11 23:22:00 +07:00
parent d09542cee0
commit a5313bb17d
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -2,9 +2,9 @@
export let uptime: number;
</script>
{#if uptime > 98}
{#if uptime >= 98}
<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>
{:else if uptime < 80 && uptime > 75}
<span class="text-orange-800 dark:text-orange-300">{uptime}%</span>