mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Make compass rose smaller on mobile device browsers
This commit is contained in:
parent
dc2dc578e9
commit
4992e92aab
@ -669,6 +669,14 @@
|
||||
background-image: url(../images/compass_W.png);
|
||||
}
|
||||
|
||||
.mobilecompass {
|
||||
top: 5px;
|
||||
right: 10px;
|
||||
height: 42px;
|
||||
width: 42px;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/*******************
|
||||
* Chat
|
||||
*/
|
||||
|
@ -306,10 +306,11 @@ DynMap.prototype = {
|
||||
updateHeight();
|
||||
});
|
||||
// The Compass
|
||||
var compass = $('<div/>')
|
||||
.addClass('compass')
|
||||
.appendTo(container);
|
||||
|
||||
var compass = $('<div/>').
|
||||
addClass('compass');
|
||||
if(L.Browser.mobile)
|
||||
compass.addClass('mobilecompass');
|
||||
compass.appendTo(container);
|
||||
// TODO: Enable hash-links.
|
||||
/*
|
||||
var link;
|
||||
|
Loading…
Reference in New Issue
Block a user