A few quick frontend tweaks
This commit is contained in:
parent
ec49a2c07e
commit
ea5fa03d37
@ -146,7 +146,11 @@ a {
|
||||
|
||||
.server > .column > .rank {
|
||||
width: 64px;
|
||||
padding-top: 3px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.server > .column > .url {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.server > .column > h3 > .type {
|
||||
@ -158,14 +162,14 @@ a {
|
||||
}
|
||||
|
||||
.server > .column > .versions {
|
||||
min-height: 22px;
|
||||
padding-bottom: 3px;
|
||||
min-height: 23px;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
|
||||
.server > .column > .versions > .version {
|
||||
padding: 1px 5px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #A09E9E;
|
||||
border: 1px solid #636363;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
@ -21,14 +21,17 @@ var sortServersTask;
|
||||
|
||||
function updateServerStatus(lastEntry) {
|
||||
var info = lastEntry.info;
|
||||
|
||||
var div = $('#status_' + safeName(info.name));
|
||||
var versionDiv = $('#version_' + safeName(info.name));
|
||||
|
||||
if (lastEntry.versions) {
|
||||
var versions = '';
|
||||
|
||||
for (var i = 0; i < lastEntry.versions.length; i++) {
|
||||
versions += '<span class="version">' + mcVersions[lastEntry.info.type][lastEntry.versions[i]] + '</span> ';
|
||||
}
|
||||
|
||||
versionDiv.html(versions);
|
||||
} else {
|
||||
versionDiv.html('');
|
||||
@ -347,8 +350,8 @@ $(document).ready(function() {
|
||||
</div>\
|
||||
<div class="column" style="width: 220px;">\
|
||||
<h3>' + info.name + ' <span class="type">' + info.type + '</span></h3>\
|
||||
<span class="color-gray">' + info.ip + '</span>\
|
||||
<div id="version_' + safeName(info.name) + '" class="versions"></div>\
|
||||
<span class="color-gray url">' + info.ip + '</span>\
|
||||
<div id="version_' + safeName(info.name) + '" class="versions"><span class="version"></span></div>\
|
||||
<span id="status_' + safeName(info.name) + '">Waiting</span>\
|
||||
</div>\
|
||||
<div class="column" style="float: right;">\
|
||||
|
Loading…
Reference in New Issue
Block a user