mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-26 10:24:40 +03:00
🔀 Merge pull request #1058 from BySempron/master
Solve background image resize
This commit is contained in:
commit
7080e3c980
@ -149,7 +149,7 @@ const HomeMixin = {
|
||||
/* If user has a background image, then generate CSS attributes */
|
||||
getBackgroundImage() {
|
||||
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 '';
|
||||
},
|
||||
|
@ -118,7 +118,7 @@ export default {
|
||||
/* Make CSS styles to apply the users custom background image */
|
||||
getBackgroundImage() {
|
||||
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 '';
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user