mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
.
This commit is contained in:
parent
93640e56be
commit
5551529a58
2 changed files with 1 additions and 21 deletions
|
|
@ -141,16 +141,8 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
||||||
async getEnrichedDescription() {
|
async getEnrichedDescription() {
|
||||||
if (!this.metadata.hasDescription) return '';
|
if (!this.metadata.hasDescription) return '';
|
||||||
|
|
||||||
const appendWithSeparator = (text, add) => {
|
|
||||||
if (!add) return text;
|
|
||||||
if (text) return `${text}\n<hr>\n${add}`;
|
|
||||||
else return add;
|
|
||||||
};
|
|
||||||
|
|
||||||
const { prefix, value, suffix } = await this.getDescriptionData();
|
const { prefix, value, suffix } = await this.getDescriptionData();
|
||||||
let fullDescription = prefix ?? '';
|
const fullDescription = [prefix, value, suffix].filter(p => !!p).join('\n<hr>\n');
|
||||||
fullDescription = appendWithSeparator(fullDescription, value);
|
|
||||||
fullDescription = appendWithSeparator(fullDescription, suffix);
|
|
||||||
|
|
||||||
return await foundry.applications.ux.TextEditor.implementation.enrichHTML(fullDescription, {
|
return await foundry.applications.ux.TextEditor.implementation.enrichHTML(fullDescription, {
|
||||||
relativeTo: this,
|
relativeTo: this,
|
||||||
|
|
|
||||||
|
|
@ -211,18 +211,6 @@
|
||||||
ul {
|
ul {
|
||||||
list-style: disc;
|
list-style: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-descriptions {
|
|
||||||
.features-header {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: underline;
|
|
||||||
|
|
||||||
&.large {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item-resources {
|
.item-resources {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue