[minor] background image should cover the whole window

This commit is contained in:
Anand Doshi 2013-11-08 17:43:13 +05:30
parent 1e3864c7d2
commit 93151f2fa9

View file

@ -31,8 +31,9 @@ wn.avatar = function(user, large, title) {
}
wn.ui.set_user_background = function(src) {
wn.dom.set_style(repl('body { background: url("%(src)s") repeat fixed;}',
{src:src}))
wn.dom.set_style(repl('body { background: url("%(src)s") no-repeat center center fixed; \
-webkit-background-size: cover; -moz-background-size: cover; \
-o-background-size: cover; background-size: cover;}', {src:src}))
}
wn.provide('wn.user');