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>';
}
var first = true;
$.each(artifact.artifactTypes, function(type,type2) {
var description = artifact.getArtifactDescriptions(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 += '<tr><th>Portal</th><th>Details</th></tr>';

View File

@ -50,6 +50,7 @@ var handleResponse = function(guid, data, success) {
};
}
if (success) {
var dict = {
raw: data.result,
type: data.result[0],
@ -67,7 +68,6 @@ var handleResponse = function(guid, data, success) {
owner: data.result[12],
};
if (success) {
cache.store(guid,dict);
//FIXME..? better way of handling sidebar refreshing...

View File

@ -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 */
}