Merge pull request #33702 from nextcloud/bugfix/noid/fix-weather-icon

This commit is contained in:
John Molakvoæ 2022-08-26 19:59:43 +02:00 committed by GitHub
commit f617796c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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