Small visual changes to stats page

This commit is contained in:
Daniël van Noord
2021-02-20 20:20:53 +01:00
parent 894f4359cd
commit db19976e3e
3 changed files with 4 additions and 4 deletions

View File

@@ -2408,7 +2408,8 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
div.appendChild(listingName);
if (type === "withTooltip") {
div.className = 'listing';
div.appendChild(document.createTextNode(' '));
let tooltip = document.createElement('span');
tooltip.onmouseout = function() { Game.tooltip.hide(); };
tooltip.onmouseover = function() {Game.tooltip.draw(this, escape(CM.Disp[placeholder].innerHTML));};
@@ -2424,7 +2425,6 @@ CM.Disp.CreateStatsListing = function(type, name, text, placeholder) {
tooltip.style.verticalAlign = 'bottom';
tooltip.textContent = '?';
div.appendChild(tooltip);
div.appendChild(document.createTextNode(' '));
}
div.appendChild(document.createTextNode(': '));
div.appendChild(text);