Fix weather icon

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-08-25 17:50:01 +02:00
parent 696a48ae97
commit f53cac1b32
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205
3 changed files with 8 additions and 5 deletions

View file

@ -504,9 +504,9 @@ export default {
if (loading) {
return 'icon-loading-small'
} else {
return weatherCode && weatherCode in weatherOptions
return 'icon-weather ' + (weatherCode && weatherCode in weatherOptions
? weatherOptions[weatherCode].icon
: 'icon-fair-day'
: 'icon-fair-day')
}
},
getWeatherMessage(weatherCode, temperature, later = false) {
@ -523,6 +523,9 @@ export default {
</script>
<style lang="scss">
.icon-weather {
background-size: 16px;
}
.icon-weather-status {
background-image: url('./../img/app-dark.svg');
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long