Remove item description fieldset

This commit is contained in:
Carlos Fernandez 2025-10-12 00:54:52 -04:00
parent b3a72d6b1d
commit b6a8722a2d
4 changed files with 17 additions and 6 deletions

View file

@ -66,7 +66,7 @@ export default class DHBaseItemSheet extends DHApplicationMixin(ItemSheetV2) {
/**@inheritdoc */ /**@inheritdoc */
async _prepareContext(options) { 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) context.showAttribution = !game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
.hideAttribution; .hideAttribution;

View file

@ -39,7 +39,6 @@ export default class DomainCardSheet extends DHBaseItemSheet {
const context = await super._prepareContext(options); const context = await super._prepareContext(options);
context.domain = CONFIG.DH.DOMAIN.allDomains()[this.document.system.domain]; context.domain = CONFIG.DH.DOMAIN.allDomains()[this.document.system.domain];
context.domainChoices = CONFIG.DH.DOMAIN.orderedDomains(); context.domainChoices = CONFIG.DH.DOMAIN.orderedDomains();
return context; return context;
} }
} }

View file

@ -10,4 +10,19 @@
font-family: @font-body; font-family: @font-body;
color: light-dark(@chat-blue-bg, @beige-50); 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;
}
}
}
} }

View file

@ -3,10 +3,7 @@
data-tab='{{tabs.description.id}}' data-tab='{{tabs.description.id}}'
data-group='{{tabs.description.group}}' data-group='{{tabs.description.group}}'
> >
<fieldset> {{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}}
<legend>{{localize "DAGGERHEART.GENERAL.description"}}</legend>
{{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}}
</fieldset>
{{#if (and showAttribution document.system.attribution.artist)}} {{#if (and showAttribution document.system.attribution.artist)}}
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label> <label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>