mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +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;
|
width: 6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#burgBody .resIcon{
|
||||||
|
width: 1.5em;
|
||||||
|
height: 1.5em;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
#burgBody > div > div,
|
#burgBody > div > div,
|
||||||
#riverBody > div,
|
#riverBody > div,
|
||||||
#routeBody > div,
|
#routeBody > div,
|
||||||
|
|
@ -2463,4 +2470,4 @@ svg.button {
|
||||||
body {
|
body {
|
||||||
background: #25252a;
|
background: #25252a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1002,10 +1002,10 @@ function drawResources() {
|
||||||
// continue;
|
// continue;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
resourcesHTML += `<g>
|
resourcesHTML += `<svg>
|
||||||
<circle data-i="${resource.i}" cx=${x} cy=${y} r="3" fill="${resource.color}" stroke="${stroke}" />
|
<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"/>
|
<use href="#${resource.icon}" x="${x - 3}" y="${y - 3}" width="6" height="6"/>
|
||||||
</g>`;
|
</svg>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
goods.html(resourcesHTML);
|
goods.html(resourcesHTML);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue