Use smaller font size for high build action IDs

This commit is contained in:
Martchus 2022-03-14 00:58:27 +01:00
parent 59cd593a3b
commit 985e641e35
1 changed files with 6 additions and 2 deletions

View File

@ -339,10 +339,14 @@ function showBuildActions(ajaxRequest)
} }
} }
stateElement.title = tooltipLines.join('\n'); stateElement.title = tooltipLines.join('\n');
stateElement.appendChild(GenericRendering.renderLink(value, row, function() { const idLink = GenericRendering.renderLink(value, row, function() {
queryBuildActionDetails(row.id); queryBuildActionDetails(row.id);
return false; return false;
}, undefined, undefined, '#build-action-details-section?' + row.id)); }, undefined, undefined, '#build-action-details-section?' + row.id);
if (value >= 100) {
idLink.style.fontSize = '80%';
}
stateElement.appendChild(idLink);
return stateElement; return stateElement;
}, },
taskName: function (value) { taskName: function (value) {