From fd0636e4e5292ed584745c73d58f6a0118d929b4 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Wed, 27 Apr 2022 02:59:32 +0200 Subject: Add chip showing that value is estimated, and add bt value --- src/components/WeatherCurrent.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/components/WeatherCurrent.svelte') diff --git a/src/components/WeatherCurrent.svelte b/src/components/WeatherCurrent.svelte index 45bfe11..8578692 100644 --- a/src/components/WeatherCurrent.svelte +++ b/src/components/WeatherCurrent.svelte @@ -76,7 +76,7 @@ .current-details { display: grid; - grid-template-columns: repeat(3, minmax(0, 1fr)); + grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 1rem; gap: 1rem; padding-bottom: 1.5rem; @@ -93,15 +93,14 @@
- {#if !$navigator_location.updating && $navigator_location.available} + {#if !$navigator_location.updating && $navigator_location.available && !$earth_weather.updating && !$space_weather.updating}

{$navigator_location.city}

{/if}
- {#if $earth_weather.updating || $space_weather.updating} - {:else} + {#if !$earth_weather.updating && !$space_weather.updating} {#if Math.abs($earth_weather.updated - $space_weather.updated) > 60*10*1000}

There is more than 10 minutes difference between data updates

{:else} @@ -128,6 +127,10 @@

BZ

{$space_weather.now.bz}

+
+

BT

+

{$space_weather.now.bt}

+
{#if $earth_weather.available}

Temp

-- cgit v1.2.3