From 40783c77614846d016f7e22cd5263c639be0633f Mon Sep 17 00:00:00 2001 From: Evan Barbour Date: Wed, 24 Jan 2024 18:35:53 +0000 Subject: [PATCH] fix: weather forecast icons on safari --- src/lib/Sidebar/WeatherForecast.svelte | 42 +++++++++++++++----------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/src/lib/Sidebar/WeatherForecast.svelte b/src/lib/Sidebar/WeatherForecast.svelte index 9f167873..0997f29f 100644 --- a/src/lib/Sidebar/WeatherForecast.svelte +++ b/src/lib/Sidebar/WeatherForecast.svelte @@ -78,19 +78,20 @@ {/if} - {#if forecast.icon.local} - - {entity_state} - - {:else} - - {/if} +
+ {#if forecast.icon.local} + + {entity_state} + + {:else} + + {/if} +
{Math.round(forecast.temperature)}{attributes?.temperature_unit || '°'} @@ -110,9 +111,9 @@ grid-column-gap: 0px; grid-row-gap: 0px; grid-template-areas: - 'day day' + 'day' 'icon' - 'temp temp'; + 'temp'; text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); text-overflow: ellipsis; overflow: hidden; @@ -129,14 +130,14 @@ } .day { - grid-area: 'day'; + grid-area: day; justify-content: center; display: flex; width: 3.6rem; } .icon { - grid-area: 'icon'; + grid-area: icon; width: 3.6rem; height: 3.6rem; display: flex; @@ -146,7 +147,7 @@ } .temp { - grid-area: 'temp'; + grid-area: temp; justify-content: center; display: flex; white-space: nowrap; @@ -154,4 +155,9 @@ overflow: hidden; text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); } + + .ff-fill { + width: 3.6rem; + height: 3.6rem; + }