[minor] background image should cover the whole window
This commit is contained in:
parent
1e3864c7d2
commit
93151f2fa9
1 changed files with 3 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue