summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-25 18:54:13 +0200
committerJulius Haertl <jus@bitgrid.net>2016-07-26 13:30:06 +0200
commit608dbc64d93ae06beb6c8a05e50196645fa206d1 (patch)
tree903337dbc2ea1dcce109f0c91e8a5eb2df37dcd1 /apps
parenta494e4f712a232a20f27c7a844f920e4887c760d (diff)
downloadnextcloud-server-608dbc64d93ae06beb6c8a05e50196645fa206d1.tar.gz
nextcloud-server-608dbc64d93ae06beb6c8a05e50196645fa206d1.zip
Theming: Fix preview and center alignment of logo
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/js/settings-admin.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/theming/js/settings-admin.js b/apps/theming/js/settings-admin.js
index bd4b4b34ed1..fa94a3d707c 100644
--- a/apps/theming/js/settings-admin.js
+++ b/apps/theming/js/settings-admin.js
@@ -41,12 +41,12 @@ function preview(setting, value) {
console.log(setting);
var logos = document.getElementsByClassName('logo-icon');
var timestamp = new Date().getTime();
- if(value !== '') {
- logos[0].style.background = "url('" + OC.generateUrl('/apps/theming/logo') + "?v" + timestamp + "')";
- logos[0].style.backgroundSize = "62px 34px";
+ if (value !== '') {
+ logos[0].style.backgroundImage = "url('" + OC.generateUrl('/apps/theming/logo') + "?v" + timestamp + "')";
+ logos[0].style.backgroundSize = "contain";
} else {
- logos[0].style.background = "url('" + OC.getRootPath() + '/core/img/logo-icon.svg?v' + timestamp +"')";
- logos[0].style.backgroundSize = "62px 34px";
+ logos[0].style.backgroundImage = "url('" + OC.getRootPath() + '/core/img/logo-icon.svg?v' + timestamp +"')";
+ logos[0].style.backgroundSize = "contain";
}
}
}