more perf on mobile
This commit is contained in:
parent
98f22c4e48
commit
7d2a704c9c
@ -40,6 +40,12 @@ window.setupStyles = function() {
|
|||||||
'#sidebar input, h2 { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ',
|
'#sidebar input, h2 { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ',
|
||||||
'#sidebar > *, #gamestat span, .imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n")
|
'#sidebar > *, #gamestat span, .imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n")
|
||||||
+ '</style>');
|
+ '</style>');
|
||||||
|
|
||||||
|
if(L.Browser.mobile) {
|
||||||
|
$('head').append('<style>' +
|
||||||
|
+ '#sidebar, #updatestatus, #chatcontrols, #chat, #chatinput { background: #0B3351 }'
|
||||||
|
+ '</style>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.setupMap = function() {
|
window.setupMap = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user