mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
fix
This commit is contained in:
parent
259e1df73e
commit
5bf6afdcd2
2 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ const drawRegiment = function (reg, stateId) {
|
||||||
.attr("y", y1)
|
.attr("y", y1)
|
||||||
.attr("height", h)
|
.attr("height", h)
|
||||||
.attr("width", h)
|
.attr("width", h)
|
||||||
.attr("href", (d.icon.startsWith("http") || d.icon.startsWith("data:image") ? reg.icon : ""));
|
.attr("href", reg.icon.startsWith("http") || reg.icon.startsWith("data:image") ? reg.icon : "");
|
||||||
};
|
};
|
||||||
|
|
||||||
// move one regiment to another
|
// move one regiment to another
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ function overviewRegiments(state) {
|
||||||
<fill-box data-tip="${s.fullName}" fill="${s.color}" disabled></fill-box>
|
<fill-box data-tip="${s.fullName}" fill="${s.color}" disabled></fill-box>
|
||||||
<input data-tip="${s.fullName}" style="width:6em" value="${s.name}" readonly />
|
<input data-tip="${s.fullName}" style="width:6em" value="${s.name}" readonly />
|
||||||
${
|
${
|
||||||
r.icon.startsWith("http") || url.startsWith("data:image")
|
r.icon.startsWith("http") || r.icon.startsWith("data:image")
|
||||||
? `<img src="${r.icon}" data-tip="Regiment's emblem" style="width:1.2em; height:1.2em; vertical-align: middle;">`
|
? `<img src="${r.icon}" data-tip="Regiment's emblem" style="width:1.2em; height:1.2em; vertical-align: middle;">`
|
||||||
: `<span data-tip="Regiment's emblem" style="width:1em">${r.icon}</span>`
|
: `<span data-tip="Regiment's emblem" style="width:1em">${r.icon}</span>`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue