mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 07:34:43 +02:00
Solve background image resize
This commit is contained in:
parent
f11e6bfd44
commit
728eb0256e
@ -149,7 +149,7 @@ const HomeMixin = {
|
|||||||
/* If user has a background image, then generate CSS attributes */
|
/* If user has a background image, then generate CSS attributes */
|
||||||
getBackgroundImage() {
|
getBackgroundImage() {
|
||||||
if (this.appConfig && this.appConfig.backgroundImg) {
|
if (this.appConfig && this.appConfig.backgroundImg) {
|
||||||
return `background: url('${this.appConfig.backgroundImg}');background-size:cover;`;
|
return `background: url('${this.appConfig.backgroundImg}') no-repeat center fixed;background-size:cover;`;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
@ -118,7 +118,7 @@ export default {
|
|||||||
/* Make CSS styles to apply the users custom background image */
|
/* Make CSS styles to apply the users custom background image */
|
||||||
getBackgroundImage() {
|
getBackgroundImage() {
|
||||||
if (this.appConfig && this.appConfig.backgroundImg) {
|
if (this.appConfig && this.appConfig.backgroundImg) {
|
||||||
return `background: url('${this.appConfig.backgroundImg}');background-size:cover;`;
|
return `background: url('${this.appConfig.backgroundImg}') no-repeat center fixed;background-size:cover;`;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user