aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHJ <spam@hjkos.com>2019-02-15 12:29:08 +0000
committerHJ <spam@hjkos.com>2019-02-15 12:29:08 +0000
commit4f95371081fd54291e3d81d7e254e9cfa1bd5b82 (patch)
tree1e0cf0053ee2843a3f714bfd990cef090183f492 /src
parent7bc8fd1a5b18676861bd8ca7ff848a48ca542087 (diff)
parent8f0e6b50454a3b8e776640a895519cdc57872a92 (diff)
Merge branch 'issue-361-preview-background' into 'develop'
#361 - fix theme preview background Closes #361 See merge request pleroma/pleroma-fe!588
Diffstat (limited to 'src')
-rw-r--r--src/App.js6
-rw-r--r--src/App.vue2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 311bf484..214e0f48 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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'>