diff --git a/module/applications/sheets/api/base-item.mjs b/module/applications/sheets/api/base-item.mjs index f719b6d1..21ccbbf1 100644 --- a/module/applications/sheets/api/base-item.mjs +++ b/module/applications/sheets/api/base-item.mjs @@ -66,7 +66,7 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) { /**@inheritdoc */ async _prepareContext(options) { - const context = super._prepareContext(options); + const context = await super._prepareContext(options); context.showAttribution = !game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance) .hideAttribution; diff --git a/module/applications/sheets/items/domainCard.mjs b/module/applications/sheets/items/domainCard.mjs index ce2d305c..022adeae 100644 --- a/module/applications/sheets/items/domainCard.mjs +++ b/module/applications/sheets/items/domainCard.mjs @@ -39,7 +39,6 @@ export default class DomainCardSheet extends DHBaseItemSheet { const context = await super._prepareContext(options); context.domain = CONFIG.DH.DOMAIN.allDomains()[this.document.system.domain]; context.domainChoices = CONFIG.DH.DOMAIN.orderedDomains(); - return context; } } diff --git a/styles/less/sheets/items/item-sheet-shared.less b/styles/less/sheets/items/item-sheet-shared.less index d0a8cc48..e57f0654 100644 --- a/styles/less/sheets/items/item-sheet-shared.less +++ b/styles/less/sheets/items/item-sheet-shared.less @@ -10,4 +10,19 @@ font-family: @font-body; color: light-dark(@chat-blue-bg, @beige-50); } + + .tab.description.active { + display: flex; + flex-direction: column; + padding: 0 20px; + .prosemirror { + flex: 1; + &.inactive .editor-content { + padding-top: 10px; + } + &.active + .artist-attribution { + display: none; + } + } + } } diff --git a/templates/sheets/global/tabs/tab-description.hbs b/templates/sheets/global/tabs/tab-description.hbs index 6d0669e0..71995a51 100755 --- a/templates/sheets/global/tabs/tab-description.hbs +++ b/templates/sheets/global/tabs/tab-description.hbs @@ -3,10 +3,7 @@ data-tab='{{tabs.description.id}}' data-group='{{tabs.description.group}}' > -
- {{localize "DAGGERHEART.GENERAL.description"}} - {{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}} -
+ {{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}} {{#if (and showAttribution document.system.attribution.artist)}}