1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

bg position fix

This commit is contained in:
NoobishSVK
2024-03-24 18:57:24 +01:00
parent 6e6a07c21d
commit 3e91f65ce8

View File

@@ -182,7 +182,7 @@ var currentVersion = 'v1.1.7 [' + formattedDate + ']';
function setBg() { function setBg() {
if(localStorage.getItem('bgImage').length > 1 && localStorage.getItem('theme') != 'theme8') { if(localStorage.getItem('bgImage').length > 1 && localStorage.getItem('theme') != 'theme8') {
$('body').css('background', 'url(' + localStorage.getItem('bgImage') + ') top left / cover no-repeat var(--color-main)'); $('body').css('background', 'url(' + localStorage.getItem('bgImage') + ') top center / cover fixed no-repeat var(--color-main)');
} else { } else {
$('body').css('background', 'var(--color-main)'); $('body').css('background', 'var(--color-main)');
} }