Browse Source
Fix weather icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/33702/head
Joas Schilling
3 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
3 changed files with
8 additions and
5 deletions
-
apps/weather_status/src/App.vue
-
dist/weather_status-weather-status.js
-
dist/weather_status-weather-status.js.map
|
|
|
@ -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'); |
|
|
|
} |
|
|
|
|