mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[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
This commit is contained in:
parent
b3a72d6b1d
commit
25fb2ee570
3 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,14 @@
|
||||||
|
|
||||||
.daggerheart.dh-style {
|
.daggerheart.dh-style {
|
||||||
.tab.active.description {
|
.tab.active.description {
|
||||||
overflow-y: hidden !important;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
height: -webkit-fill-available !important;
|
height: -webkit-fill-available !important;
|
||||||
|
overflow-y: hidden !important;
|
||||||
|
padding-top: 10px;
|
||||||
|
|
||||||
fieldset {
|
prose-mirror.active + .artist-attribution {
|
||||||
height: -webkit-fill-available;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
|
||||||
<legend>{{localize "DAGGERHEART.GENERAL.description"}}</legend>
|
|
||||||
{{formInput systemFields.description value=document.system.description enriched=enrichedDescription toggled=true}}
|
{{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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue