forked from AkkomaGang/akkoma-fe
Merge branch 'issue-361-preview-background' into 'develop'
#361 - fix theme preview background Closes #361 See merge request pleroma/pleroma-fe!588
This commit is contained in:
commit
4f95371081
2 changed files with 6 additions and 2 deletions
|
@ -68,10 +68,14 @@ export default {
|
||||||
logo () { return this.$store.state.instance.logo },
|
logo () { return this.$store.state.instance.logo },
|
||||||
bgStyle () {
|
bgStyle () {
|
||||||
return {
|
return {
|
||||||
'--body-background-image': `url(${this.background})`,
|
|
||||||
'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 },
|
sitename () { return this.$store.state.instance.name },
|
||||||
chat () { return this.$store.state.chat.channel.state === 'joined' },
|
chat () { return this.$store.state.chat.channel.state === 'joined' },
|
||||||
suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled },
|
suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled },
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app" v-bind:style="bgAppStyle">
|
||||||
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
|
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
|
||||||
<nav class='nav-bar container' @click="scrollToTop()" id="nav">
|
<nav class='nav-bar container' @click="scrollToTop()" id="nav">
|
||||||
<div class='logo' :style='logoBgStyle'>
|
<div class='logo' :style='logoBgStyle'>
|
||||||
|
|
Loading…
Reference in a new issue