diff options
| author | dave <starpumadev@gmail.com> | 2019-02-15 07:20:52 -0500 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-02-15 07:20:52 -0500 |
| commit | 8f0e6b50454a3b8e776640a895519cdc57872a92 (patch) | |
| tree | a4213099a148689b6827dfce51c48ea81be8e6d7 /src | |
| parent | d6f9f34ad84fdfe2add1532bc27fa62f80a5b8ab (diff) | |
#361 - fix theme preview background
Diffstat (limited to 'src')
| -rw-r--r-- | src/App.js | 6 | ||||
| -rw-r--r-- | src/App.vue | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -68,10 +68,14 @@ export default { logo () { return this.$store.state.instance.logo }, bgStyle () { return { - '--body-background-image': `url(${this.background})`, 'background-image': `url(${this.background})` } }, + bgAppStyle () { + return { + '--body-background-image': `url(${this.background})` + } + }, sitename () { return this.$store.state.instance.name }, chat () { return this.$store.state.chat.channel.state === 'joined' }, suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled }, diff --git a/src/App.vue b/src/App.vue index fa5736e5..acbbeb75 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ <template> - <div id="app"> + <div id="app" v-bind:style="bgAppStyle"> <div class="app-bg-wrapper" v-bind:style="bgStyle"></div> <nav class='nav-bar container' @click="scrollToTop()" id="nav"> <div class='logo' :style='logoBgStyle'> |
