style: remove 12px font size for some sidebar items - something changed (in the google fonts?) and they were too small

artifacts: tweaks to artifact list display
portal details: fix exception when handling portal detail error responses
This commit is contained in:
Jon Atkins 2015-01-21 15:15:30 +00:00
parent 52e49399d1
commit 712b954910
3 changed files with 26 additions and 21 deletions

View File

@ -265,12 +265,15 @@ window.artifact.showArtifactList = function() {
html += '<i>No artifacts at this time</i>'; html += '<i>No artifacts at this time</i>';
} }
var first = true;
$.each(artifact.artifactTypes, function(type,type2) { $.each(artifact.artifactTypes, function(type,type2) {
var description = artifact.getArtifactDescriptions(type); var description = artifact.getArtifactDescriptions(type);
var name = description ? description.title : ('unknown artifact type: '+type); var name = description ? description.title : ('unknown artifact type: '+type);
html += '<hr><div><b>'+name+'</b></div>'; if (!first) html += '<hr>';
first = false;
html += '<div><b>'+name+'</b></div>';
html += '<table class="artifact artifact-'+type+'">'; html += '<table class="artifact artifact-'+type+'">';
html += '<tr><th>Portal</th><th>Details</th></tr>'; html += '<tr><th>Portal</th><th>Details</th></tr>';

View File

@ -50,24 +50,24 @@ var handleResponse = function(guid, data, success) {
}; };
} }
var dict = {
raw: data.result,
type: data.result[0],
team: data.result[1],
latE6: data.result[2],
lngE6: data.result[3],
level: data.result[4],
health: data.result[5],
resCount: data.result[6],
image: data.result[7],
title: data.result[8],
ornaments: data.result[9],
mods: data.result[10].map(parseMod),
resonators:data.result[11].map(parseResonator),
owner: data.result[12],
};
if (success) { if (success) {
var dict = {
raw: data.result,
type: data.result[0],
team: data.result[1],
latE6: data.result[2],
lngE6: data.result[3],
level: data.result[4],
health: data.result[5],
resCount: data.result[6],
image: data.result[7],
title: data.result[8],
ornaments: data.result[9],
mods: data.result[10].map(parseMod),
resonators:data.result[11].map(parseResonator),
owner: data.result[12],
};
cache.store(guid,dict); cache.store(guid,dict);
//FIXME..? better way of handling sidebar refreshing... //FIXME..? better way of handling sidebar refreshing...

View File

@ -711,13 +711,11 @@ h3 {
.linkdetails aside { .linkdetails aside {
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
font-size: 12px;
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
} }
#toolbox { #toolbox {
font-size: 12px;
text-align: left; /* centre didn't look as nice here as it did above in .linkdetails */ text-align: left; /* centre didn't look as nice here as it did above in .linkdetails */
} }
@ -1039,7 +1037,11 @@ table.artifact tr > * {
} }
table.artifact td.info { table.artifact td.info {
min-width: 110px; min-width: 110px; /* min-width for info column, to ensure really long portal names don't crowd things out */
}
table.artifact .portal {
min-width: 200px; /* min-width for portal names, to ensure really long lists of artifacts don't crowd names out */
} }