diff --git a/code/artifact.js b/code/artifact.js index ba2b920a..eef75521 100644 --- a/code/artifact.js +++ b/code/artifact.js @@ -265,12 +265,15 @@ window.artifact.showArtifactList = function() { html += 'No artifacts at this time'; } + var first = true; $.each(artifact.artifactTypes, function(type,type2) { var description = artifact.getArtifactDescriptions(type); var name = description ? description.title : ('unknown artifact type: '+type); - html += '
'+name+'
'; + if (!first) html += '
'; + first = false; + html += '
'+name+'
'; html += ''; html += ''; diff --git a/code/portal_detail.js b/code/portal_detail.js index cafa4a37..3eb4f0e7 100644 --- a/code/portal_detail.js +++ b/code/portal_detail.js @@ -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) { + 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); //FIXME..? better way of handling sidebar refreshing... diff --git a/style.css b/style.css index 69a01b64..537c803c 100644 --- a/style.css +++ b/style.css @@ -711,13 +711,11 @@ h3 { .linkdetails aside { display: inline-block; white-space: nowrap; - font-size: 12px; margin-left: 5px; margin-right: 5px; } #toolbox { - font-size: 12px; 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 { - 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 */ }
PortalDetails