|
13 | 13 | <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" rel="stylesheet" /> |
14 | 14 | <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet" /> |
15 | 15 | <style> |
| 16 | + #BG { |
| 17 | + position: fixed; |
| 18 | + top: 0; |
| 19 | + left: 0; |
| 20 | + bottom: 0; |
| 21 | + right: 0; |
| 22 | + z-index: 0; |
| 23 | + background-position: center; |
| 24 | + background-size: cover; |
| 25 | + background-repeat: no-repeat; |
| 26 | + } |
16 | 27 | [v-cloak] { |
17 | 28 | display: none; |
18 | 29 | } |
|
78 | 89 | </style> |
79 | 90 | </head> |
80 | 91 | <body> |
| 92 | + <div id="BG"></div> |
81 | 93 | <div id="app" v-cloak> |
82 | 94 | <v-app v-if="box" :style="appViewStyle"> |
83 | 95 | <v-snackbar top app v-model="ui.snackbar.show" v-bind="ui.snackbar">{{ui.snackbar.msg}}</v-snackbar> |
@@ -1366,16 +1378,10 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio |
1366 | 1378 | if (this.isWallpaper) { |
1367 | 1379 | const bodyStyle = [ |
1368 | 1380 | `background-color: ${this.isDarkMode ? '#121212' : '#fff'}`, |
1369 | | - `background-image: linear-gradient(rgba(0,0,0,.2) 1%, rgba(255,255,255,0) 10%), url(${this.box.usercfgs.bgimg})`, |
1370 | | - 'background-position: center', |
1371 | | - 'background-size: cover', |
1372 | | - 'background-repeat: no-repeat', |
1373 | | - 'background-attachment: scroll', |
1374 | | - 'height: 100vh', |
1375 | | - 'overflow-y: scroll' |
| 1381 | + `background-image: linear-gradient(rgba(0,0,0,.2) 1%, rgba(255,255,255,0) 10%), url(${this.box.usercfgs.bgimg})` |
1376 | 1382 | ] |
1377 | 1383 | // document.querySelector('body').removeAttribute('style') |
1378 | | - document.querySelector('body').setAttribute('style', bodyStyle.join('; ')) |
| 1384 | + document.querySelector('#BG').setAttribute('style', bodyStyle.join('; ')) |
1379 | 1385 | } else { |
1380 | 1386 | const darkBg = 'background-color: #121212' |
1381 | 1387 | const lightBg = 'background: linear-gradient(rgba(0,0,0,.3) 1%, rgba(255,255,255,0) 10%)' |
|
0 commit comments