fix height issue, missing text, and red color for Feature (#51)

* fix height issue, missing text, and red color

* Update module/applications/sheets/feature.mjs

Co-authored-by: Emilio Jimenez <19908114+emiliojc@users.noreply.github.com>

---------

Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
Co-authored-by: Emilio Jimenez <19908114+emiliojc@users.noreply.github.com>
This commit is contained in:
IrkTheImp 2025-05-25 05:14:25 -05:00 committed by GitHub
parent a108c55d7c
commit 98a76aec48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 6 deletions

View file

@ -992,6 +992,7 @@
"Dice": "Dice",
"Icon": "Icon"
},
"Max": "Max",
"Tabs": {
"Features": "Features",
"Effects": "Effects",

View file

@ -15,6 +15,7 @@ export default class FeatureSheet extends DaggerheartSheet(ItemSheetV2) {
id: 'daggerheart-feature',
classes: ['daggerheart', 'sheet', 'feature'],
position: { width: 600, height: 600 },
window: { resizable: true },
actions: {
addEffect: this.addEffect,
removeEffect: this.removeEffect,

View file

@ -1530,9 +1530,6 @@
.daggerheart.chat.domain-card img {
width: 80px;
}
.daggerheart.sheet.feature {
background-color: red;
}
.daggerheart.sheet.feature .editable {
display: flex;
flex-direction: column;

View file

@ -1,6 +1,5 @@
.daggerheart.sheet {
&.feature {
background-color: red;
.editable {
display: flex;
flex-direction: column;

View file

@ -22,9 +22,8 @@
{{formField systemFields.type value=source.system.type rootId=partId label="DAGGERHEART.Sheets.Feature.FeatureType" localize=true }}
{{formField systemFields.actionType value=source.system.actionType label="DAGGERHEART.Sheets.Feature.ActionType" rootId=partId localize=true }}
<div class="form-group">
<label>{{localize "DAGGERHEART.Sheets.Feature.RefreshType"}}</label>
<div class="form-fields">
{{formField systemFields.refreshData.fields.type value=source.system.refreshData.type rootId=partId label="Type" localize=true }}
{{formField systemFields.refreshData.fields.type value=source.system.refreshData.type rootId=partId label="DAGGERHEART.Sheets.Feature.RefreshType" localize=true }}
{{#if document.system.refreshData.type}}
<label>Uses</label>
<input type="text" name="system.refreshData.uses" value="{{document.system.refreshData.uses}}" data-dtype="Number" />