mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Fix weather icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
696a48ae97
commit
f53cac1b32
3 changed files with 8 additions and 5 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
4
dist/weather_status-weather-status.js
vendored
4
dist/weather_status-weather-status.js
vendored
File diff suppressed because one or more lines are too long
2
dist/weather_status-weather-status.js.map
vendored
2
dist/weather_status-weather-status.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue