From 98a76aec487e37104a188272eb77904814db5032 Mon Sep 17 00:00:00 2001 From: IrkTheImp <41175833+IrkTheImp@users.noreply.github.com> Date: Sun, 25 May 2025 05:14:25 -0500 Subject: [PATCH] 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> --- lang/en.json | 1 + module/applications/sheets/feature.mjs | 1 + styles/daggerheart.css | 3 --- styles/item.less | 1 - templates/sheets/feature.hbs | 3 +-- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lang/en.json b/lang/en.json index a99266ed..10b7a9b0 100644 --- a/lang/en.json +++ b/lang/en.json @@ -992,6 +992,7 @@ "Dice": "Dice", "Icon": "Icon" }, + "Max": "Max", "Tabs": { "Features": "Features", "Effects": "Effects", diff --git a/module/applications/sheets/feature.mjs b/module/applications/sheets/feature.mjs index 03658d4f..894d620e 100644 --- a/module/applications/sheets/feature.mjs +++ b/module/applications/sheets/feature.mjs @@ -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, diff --git a/styles/daggerheart.css b/styles/daggerheart.css index 021b5ce2..e982c973 100644 --- a/styles/daggerheart.css +++ b/styles/daggerheart.css @@ -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; diff --git a/styles/item.less b/styles/item.less index f453af8b..a6d16bee 100644 --- a/styles/item.less +++ b/styles/item.less @@ -1,6 +1,5 @@ .daggerheart.sheet { &.feature { - background-color: red; .editable { display: flex; flex-direction: column; diff --git a/templates/sheets/feature.hbs b/templates/sheets/feature.hbs index 5baa9a75..c0e6d9e6 100644 --- a/templates/sheets/feature.hbs +++ b/templates/sheets/feature.hbs @@ -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 }}
-
- {{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}}