insert prose-mirror style and inicial implement to damage settings

This commit is contained in:
molilo 2025-07-01 15:00:38 -03:00
parent 92ce2b4367
commit ab4bdfd49a
5 changed files with 47 additions and 2 deletions

View file

@ -102,6 +102,7 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
context.tabs = this._getTabs(this.constructor.TABS);
context.systemFields = this.actor.system.schema.fields;
context.systemFields.attack.fields = this.actor.system.attack.schema.fields;
context.isNPC = true;
return context;
}

View file

@ -5768,6 +5768,25 @@ div.daggerheart.views.multiclass {
gap: 10px;
align-items: center;
}
.application prose-mirror {
height: 100% !important;
}
.application prose-mirror .editor-menu {
background-color: transparent;
}
.application prose-mirror .editor-content {
scrollbar-width: thin;
scrollbar-color: light-dark(#18162e, #f3c267) transparent;
}
.application prose-mirror .editor-content h1 {
font-size: 36px;
}
.application prose-mirror .editor-content h2 {
font-size: 32px;
}
.application prose-mirror .editor-content h3 {
font-size: 24px;
}
.daggerheart {
/* Flex */
/****/

View file

@ -56,6 +56,7 @@
@import './less/global/feature-section.less';
@import './less/global/inventory-item.less';
@import './less/global/inventory-fieldset-items.less';
@import './less/global/prose-mirror.less';
@import '../node_modules/@yaireo/tagify/dist/tagify.css';
.daggerheart {

View file

@ -0,0 +1,24 @@
@import '../utils/colors.less';
.application {
prose-mirror {
height: 100% !important;
.editor-menu {
background-color: transparent;
}
.editor-content {
scrollbar-width: thin;
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
h1 {
font-size: 36px;
}
h2 {
font-size: 32px;
}
h3 {
font-size: 24px;
}
}
}
}

View file

@ -19,6 +19,6 @@
{{ formField systemFields.attack.fields.target.fields.type value=document.system.target.type label="Target" name=(concat path "target.type") localize=true }}
{{/if}}
</fieldset>
{{> 'systems/daggerheart/templates/views/actionTypes/damage.hbs' fields=systemFields.attack.fields.damage.fields.parts.element.fields source=source.system.attack.damage path="system.attack."}}
{{> 'systems/daggerheart/templates/views/actionTypes/effect.hbs' fields=systemFields.attack.fields.effects.element.fields source=source.system.attack.effects}}
{{> 'systems/daggerheart/templates/views/actionTypes/damage.hbs' fields=systemFields.attack.fields.damage.fields.parts.element.fields source=document.system.attack.damage path="system.attack."}}
{{> 'systems/daggerheart/templates/views/actionTypes/effect.hbs' fields=systemFields.attack.fields.effects.element.fields source=document.system.attack.effects}}
</section>