From 25fb2ee570bfc35f19e50c0a03559934512f39f5 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Tue, 14 Oct 2025 11:00:16 -0400 Subject: [PATCH] [Community PR] Remove item description fieldset (#1214) * Remove item description fieldset * Move styling to tab description and reduce tab specific overrides * Move artist attribution style back to tab description * Roll back editor menu changes --- module/applications/sheets/api/base-item.mjs | 2 +- styles/less/global/tab-description.less | 9 ++++++--- templates/sheets/global/tabs/tab-description.hbs | 5 +---- 3 files changed, 8 insertions(+), 8 deletions(-) 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/styles/less/global/tab-description.less b/styles/less/global/tab-description.less index 4d81f2f2..04a9d82a 100644 --- a/styles/less/global/tab-description.less +++ b/styles/less/global/tab-description.less @@ -3,11 +3,14 @@ .daggerheart.dh-style { .tab.active.description { - overflow-y: hidden !important; + display: flex; + flex-direction: column; height: -webkit-fill-available !important; + overflow-y: hidden !important; + padding-top: 10px; - fieldset { - height: -webkit-fill-available; + prose-mirror.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)}}