Fix icon size in burg editor.

This commit is contained in:
sofronaspe 2025-01-11 14:23:35 -05:00
parent efbca32881
commit 9ce260af29
2 changed files with 10 additions and 3 deletions

View file

@ -1618,6 +1618,13 @@ div.states > div.resourceBonus > span.icon-male {
width: 6em;
}
#burgBody .resIcon{
width: 1.5em;
height: 1.5em;
vertical-align: middle;
margin-right: 0.2em;
}
#burgBody > div > div,
#riverBody > div,
#routeBody > div,

View file

@ -1002,10 +1002,10 @@ function drawResources() {
// continue;
// }
resourcesHTML += `<g>
resourcesHTML += `<svg>
<circle data-i="${resource.i}" cx=${x} cy=${y} r="3" fill="${resource.color}" stroke="${stroke}" />
<use href="#${resource.icon}" x="${x - 3}" y="${y - 3}" width="6" height="6"/>
</g>`;
</svg>`;
}
goods.html(resourcesHTML);