mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
Fix icon size in burg editor.
This commit is contained in:
parent
efbca32881
commit
9ce260af29
2 changed files with 10 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
@ -2463,4 +2470,4 @@ svg.button {
|
|||
body {
|
||||
background: #25252a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue