fix(boot): background is moving
This commit is contained in:
parent
71ee993f05
commit
e760b78963
2 changed files with 20 additions and 4 deletions
|
@ -137,9 +137,10 @@
|
|||
document.documentElement.classList.add('useSystemFont');
|
||||
}
|
||||
|
||||
const wallpaper = localStorage.getItem('wallpaper');
|
||||
const wallpaper = localStorage.getItem('wallpaper') ?? meta.backgroundImageUrl;
|
||||
if (wallpaper) {
|
||||
document.documentElement.style.backgroundImage = `url(${wallpaper})`;
|
||||
document.documentElement.style.background = `url(${wallpaper}) no-repeat fixed center`;
|
||||
document.documentElement.style.backgroundSize = 'cover';
|
||||
}
|
||||
|
||||
const customCss = localStorage.getItem('customCss');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue