Fix code and deleted margin for rank/ring in compendium
This commit is contained in:
@@ -145,21 +145,14 @@ export default class HooksL5r5e {
|
|||||||
if (app.entity === "Item") {
|
if (app.entity === "Item") {
|
||||||
const content = await app.getContent();
|
const content = await app.getContent();
|
||||||
content.forEach((item) => {
|
content.forEach((item) => {
|
||||||
const tags = [];
|
if (!!item.data.data.ring || !!item.data.data.rank) {
|
||||||
if (!item.data.data.ring) {
|
html.find(`[data-entry-id="${item._id}"]`).append(
|
||||||
tags.push(`<i>`);
|
`<i` +
|
||||||
}
|
(item.data.data.ring ? ` class="i_${item.data.data.ring}"` : ``) +
|
||||||
if (item.data.data.ring) {
|
`>` +
|
||||||
tags.push(`<i class="i_${item.data.data.ring}">`);
|
(item.data.data.rank ? game.i18n.localize("l5r5e.rank") + " " + item.data.data.rank : "") +
|
||||||
}
|
`</i>`
|
||||||
if (!item.data.data.rank) {
|
);
|
||||||
tags.push(`</i>`);
|
|
||||||
}
|
|
||||||
if (item.data.data.rank) {
|
|
||||||
tags.push(game.i18n.localize("l5r5e.rank") + " " + item.data.data.rank + "</i>");
|
|
||||||
}
|
|
||||||
if (tags.length > 0) {
|
|
||||||
html.find(`[data-entry-id="${item._id}"]`).append(tags.join(" "));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -70,7 +70,6 @@ body {
|
|||||||
float: right;
|
float: right;
|
||||||
line-height: 1rem;
|
line-height: 1rem;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-right: 2rem;
|
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
color: rgba(240, 240, 225, 0.75);
|
color: rgba(240, 240, 225, 0.75);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
|||||||
Reference in New Issue
Block a user