Basic no-wallpaper support
This commit is contained in:
parent
674c302350
commit
c197756767
13 changed files with 38 additions and 11 deletions
17
src/App.js
17
src/App.js
|
@ -54,13 +54,16 @@ export default {
|
|||
return this.currentUser.background_image || this.$store.state.instance.background
|
||||
},
|
||||
bgStyle () {
|
||||
return {
|
||||
'background-image': `url(${this.background})`
|
||||
}
|
||||
},
|
||||
bgAppStyle () {
|
||||
return {
|
||||
'--body-background-image': `url(${this.background})`
|
||||
if (
|
||||
this.currentUser.background_image ||
|
||||
(
|
||||
this.$store.state.instance.background &&
|
||||
!this.$store.getters.mergedConfig.hideInstanceWallpaper
|
||||
)
|
||||
) {
|
||||
return {
|
||||
'--body-background-image': `url(${this.background})`
|
||||
}
|
||||
}
|
||||
},
|
||||
chat () { return this.$store.state.chat.channel.state === 'joined' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue