Compare commits

..

4 commits

Author SHA1 Message Date
Carlos Fernandez
b73c70aeb8 Also remove fieldset for npc features and fix padding issue in full screen notes 2026-07-03 01:42:34 -04:00
Carlos Fernandez
7409a577f6 Remove certain fieldsets and adjust scrollsbars 2026-07-03 00:58:48 -04:00
Carlos Fernandez
53ed9fc792
More preliminary sheet work and refactors (#2057)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-07-03 01:17:59 +02:00
Carlos Fernandez
e718c6b7b8
Fix item expand state not being retained across rerenders (#2056)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-07-02 10:33:16 +02:00
42 changed files with 340 additions and 362 deletions

View file

@ -7,7 +7,7 @@ export default class AdversarySheet extends DHBaseActorSheet {
/** @inheritDoc */ /** @inheritDoc */
static DEFAULT_OPTIONS = { static DEFAULT_OPTIONS = {
classes: ['adversary'], classes: ['adversary'],
position: { width: 645, height: 760 }, position: { width: 645, height: 750 },
window: { resizable: true }, window: { resizable: true },
actions: { actions: {
toggleHitPoints: AdversarySheet.#toggleHitPoints, toggleHitPoints: AdversarySheet.#toggleHitPoints,

View file

@ -305,7 +305,7 @@ export default function DHApplicationMixin(Base) {
_preSyncPartState(partId, newElement, priorElement, state) { _preSyncPartState(partId, newElement, priorElement, state) {
super._preSyncPartState(partId, newElement, priorElement, state); super._preSyncPartState(partId, newElement, priorElement, state);
for (const el of priorElement.querySelectorAll('.extensible.extended')) { for (const el of priorElement.querySelectorAll('.extensible.extended')) {
const { actionId, itemUuid } = el.parentElement.dataset; const { actionId, itemUuid } = el.closest('[data-item-uuid], [data-action-id]').dataset;
const selector = `${actionId ? `[data-action-id="${actionId}"]` : `[data-item-uuid="${itemUuid}"]`} .extensible`; const selector = `${actionId ? `[data-action-id="${actionId}"]` : `[data-item-uuid="${itemUuid}"]`} .extensible`;
const newExtensible = newElement.querySelector(selector); const newExtensible = newElement.querySelector(selector);
newExtensible?.classList.add('extended'); newExtensible?.classList.add('extended');

View file

@ -261,15 +261,14 @@
fieldset { fieldset {
align-items: center; align-items: center;
margin: 0; margin: 5px 0 0 0;
margin-top: 5px;
border-radius: 6px; border-radius: 6px;
border-color: @color-fieldset-border; border-color: @color-fieldset-border;
padding-inline: 0.625rem;
&.glassy { &.glassy {
background-color: light-dark(@dark-blue-10, @golden-10); background-color: light-dark(@dark-blue-10, @golden-10);
border: none; border: none;
padding-inline: 10px;
legend { legend {
padding: 2px 12px; padding: 2px 12px;
@ -514,7 +513,7 @@
height: 1px; height: 1px;
width: 100%; width: 100%;
border-bottom: 1px solid @color-border; border-bottom: 1px solid @color-border;
mask-image: linear-gradient(270deg, transparent 0%, black 35%, black 50%, black 65%, transparent 100%); mask-image: linear-gradient(270deg, transparent 0%, black 50%, transparent 100%);
} }
side-line-div { side-line-div {
@ -548,6 +547,39 @@
transform-origin: top; transform-origin: top;
} }
/* A multi-button element used to attach resources to other buttons */
.item-button {
display: flex;
button {
color: light-dark(@dark-blue, @dark-blue);
white-space: nowrap;
border: none;
&:hover {
color: @color-text-emphatic;
}
&:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 6px;
background: light-dark(@dark-blue-10, @golden-secondary);
color: light-dark(@dark-blue, @dark-golden);
&:hover {
background: light-dark(@light-black, @dark-blue);
color: light-dark(@dark-blue, @golden-secondary);
}
}
&:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 1px solid black;
}
}
}
.artist-attribution { .artist-attribution {
width: 100%; width: 100%;
display: flex; display: flex;
@ -555,7 +587,7 @@
font-style: italic; font-style: italic;
font-family: @font-body; font-family: @font-body;
margin-top: 4px; margin-top: 4px;
color: @color-text-subtle; color: light-dark(#14142599, #efe6d850);
font-size: var(--font-size-12); font-size: var(--font-size-12);
padding-left: 3px; padding-left: 3px;
} }

View file

@ -96,7 +96,7 @@
flex-wrap: wrap; flex-wrap: wrap;
font-size: var(--font-size-12); font-size: var(--font-size-12);
justify-content: start; justify-content: start;
padding: 2px 5px; padding: 3px 5px;
} }
} }
} }

View file

@ -45,11 +45,8 @@
.item-main { .item-main {
border-radius: 5px; border-radius: 5px;
// Make hover extend out of bounds.
// Because of this extra spacing, the scroll container parent needs some padding
padding: 2px; padding: 2px;
margin: -2px -2px 0 -2px; margin: -2px;
} }
&:hover { &:hover {
@ -278,45 +275,9 @@
.item-buttons { .item-buttons {
grid-column: span 3; grid-column: span 3;
display: flex; display: flex;
gap: 8px; gap: 4px;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 2px;
.item-button {
display: flex;
border: 1px solid light-dark(#18162e, #18162e);
color: light-dark(#18162e, #18162e);
outline: none;
box-shadow: none;
border-radius: 6px;
button {
border-radius: 3px 0px 0px 3px;
color: light-dark(@dark-blue, @dark-blue);
white-space: nowrap;
border: 0;
&:hover {
color: @color-text-emphatic;
}
&:not(:first-child) {
padding: 6px;
background: light-dark(@dark-blue-10, @golden-secondary);
border-radius: 0px 3px 3px 0px;
color: light-dark(@dark-blue, @dark-golden);
&:hover {
background: light-dark(@light-black, @dark-blue);
color: light-dark(@dark-blue, @golden-secondary);
}
}
}
.spacer {
border-right: 1px solid black;
content: '';
}
}
} }
} }

View file

@ -18,8 +18,6 @@
}); });
.application.sheet.daggerheart.actor.dh-style { .application.sheet.daggerheart.actor.dh-style {
--side-indent: 16px;
.portrait img, .portrait img,
.profile { .profile {
width: 100%; width: 100%;
@ -49,24 +47,11 @@
} }
.tab { .tab {
flex: 1;
padding: 0; padding: 0;
overflow: hidden;
.search-section { .search-section {
padding: var(--spacer-16) 12px var(--spacer-8) 10px; padding: 12px 14px var(--spacer-8) 12px;
}
.scroll-container {
scrollbar-gutter: stable;
overflow-y: auto;
.with-scroll-shadows();
padding: var(--spacer-16) calc(var(--side-indent) - var(--scrollbar-width)) 4px var(--side-indent);
> fieldset:first-child {
margin-top: 0;
}
}
.scroll-container:not(:first-child) {
padding-top: var(--spacer-8); // nested have less top padding
} }
} }
@ -75,7 +60,7 @@
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 10px; gap: 10px;
padding: var(--spacer-8) var(--side-indent) var(--spacer-12) var(--side-indent); padding: var(--spacer-8) 16px var(--spacer-8) 16px;
.input { .input {
color: light-dark(@dark, @beige); color: light-dark(@dark, @beige);
@ -86,7 +71,6 @@
.tab.notes.active { .tab.notes.active {
padding: 0; padding: 0;
margin: 0; margin: 0;
margin-top: -10px; // will be removed once tab-navigation bottom margin is removed on all actor sheets
scrollbar-gutter: unset; scrollbar-gutter: unset;
// Add padding around top level level prosemirrors used for note tabs // Add padding around top level level prosemirrors used for note tabs
@ -95,6 +79,7 @@
.editor-content { .editor-content {
scrollbar-gutter: stable; scrollbar-gutter: stable;
padding-right: @right-padding; padding-right: @right-padding;
padding-bottom: 4px;
} }
&.inactive { &.inactive {
button.toggle { button.toggle {
@ -105,7 +90,7 @@
} }
} }
&.active { &.active {
padding: 8px 0 4px 16px; padding: 8px 0 0 16px;
} }
} }
@ -123,6 +108,7 @@
position: relative; position: relative;
color: light-dark(@dark-blue-50, @beige-50); color: light-dark(@dark-blue-50, @beige-50);
width: 100%; width: 100%;
padding-top: 5px;
input { input {
border-radius: 50px; border-radius: 50px;

View file

@ -7,6 +7,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -5,9 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.adversary { .application.sheet.daggerheart.actor.dh-style.adversary {
.tab.features { .tab.features {
.feature-section { .feature-section {
display: flex; padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
flex-direction: column; .stable-scroll-container();
gap: 10px;
} }
} }
} }

View file

@ -7,7 +7,7 @@
width: 100%; width: 100%;
> *:not(line-div, .tab-navigation) { > *:not(line-div, .tab-navigation) {
padding-left: var(--side-indent); padding-left: 15px;
padding-right: 15px; padding-right: 15px;
} }

View file

@ -0,0 +1,3 @@
.application.sheet.daggerheart.actor.dh-style.adversary .tab.notes.active {
padding-bottom: 20px;
}

View file

@ -30,11 +30,9 @@
grid-row: 2; grid-row: 2;
grid-column: 2; grid-column: 2;
&.active { &.active {
overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 0 0 10px 0; margin: 0 0 10px 0;
position: relative;
} }
} }
} }

View file

@ -8,11 +8,14 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
flex: 1; height: 100%;
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
.characteristics-section { .characteristics-section {
gap: 20px; gap: 20px;
padding: 0 4px;
} }
.biography-section { .biography-section {

View file

@ -8,6 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -8,6 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -23,8 +23,8 @@
width: 100%; width: 100%;
> *:not(line-div, .tab-navigation) { > *:not(line-div, .tab-navigation) {
margin-left: var(--side-indent); padding-left: 15px;
margin-right: 15px; padding-right: 15px;
} }
.name-row { .name-row {
@ -224,7 +224,7 @@
justify-content: space-between; justify-content: space-between;
max-width: 38.5rem; max-width: 38.5rem;
gap: 0.5rem; gap: 0.5rem;
padding-left: 0.5rem; margin-left: 0.5rem;
.trait { .trait {
cursor: pointer; cursor: pointer;

View file

@ -8,6 +8,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -50,6 +50,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 8px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -2,8 +2,6 @@
@import '../../../utils/fonts.less'; @import '../../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.character { .application.sheet.daggerheart.actor.dh-style.character {
--side-indent: 16px;
.window-content { .window-content {
display: grid; display: grid;
grid-template-columns: 275px 1fr; grid-template-columns: 275px 1fr;
@ -12,34 +10,28 @@
width: 100%; width: 100%;
padding-bottom: 0; padding-bottom: 0;
overflow-x: auto; overflow-x: auto;
}
.character-sidebar-sheet { .character-sidebar-sheet {
grid-row: 1 / span 2; grid-row: 1 / span 2;
grid-column: 1; grid-column: 1;
display: flex;
flex-direction: column;
}
.character-header-sheet {
position: relative;
grid-row: 1;
grid-column: 2;
}
.tab {
grid-row: 2;
grid-column: 2;
padding-right: 0;
margin-right: 2px;
margin-bottom: 12px;
&.active {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; }
margin: 0 0 10px 0;
padding: 0; .character-header-sheet {
position: relative; position: relative;
grid-row: 1;
grid-column: 2;
}
.tab {
grid-row: 2;
grid-column: 2;
&.active {
display: flex;
flex-direction: column;
margin: 0 0 10px 0;
}
} }
} }
} }

View file

@ -1,7 +1,10 @@
@import '../../../utils/colors.less'; @import '../../../utils/colors.less';
@import '../../../utils/fonts.less'; @import '../../../utils/fonts.less';
.application.sheet.daggerheart.actor.dh-style.companion { .application.sheet.daggerheart.actor.dh-style.companion .tab.details.active {
padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
.partner-section, .partner-section,
.attack-section, .attack-section,
.experience-list { .experience-list {

View file

@ -1,18 +1,13 @@
@import '../../../utils/colors.less'; @import '../../../utils/colors.less';
@import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.companion { .application.sheet.daggerheart.actor.dh-style.companion {
.tab.effects { .tab.effects {
margin-right: 2px;
padding-right: 0;
.effects-sections { .effects-sections {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto; padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
padding-bottom: 4px; .stable-scroll-container();
scrollbar-gutter: stable;
.with-scroll-shadows();
} }
} }
} }

View file

@ -5,9 +5,8 @@
.application.sheet.daggerheart.actor.dh-style.environment { .application.sheet.daggerheart.actor.dh-style.environment {
.tab.features { .tab.features {
.feature-section { .feature-section {
display: flex; padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
flex-direction: column; .stable-scroll-container();
gap: 10px;
} }
} }
} }

View file

@ -138,11 +138,10 @@
} }
.environment-navigation { .environment-navigation {
padding-right: 20px; padding: 0 20px;
.tab-navigation { .tab-navigation {
margin-top: 0; margin-top: 0;
margin-bottom: 0;
} }
} }
} }

View file

@ -1,5 +1,4 @@
@import '../../../utils/colors.less'; @import '../../../utils/colors.less';
@import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.environment { .application.sheet.daggerheart.actor.dh-style.environment {
.tab.potentialAdversaries { .tab.potentialAdversaries {
@ -7,6 +6,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
padding: 7px calc(12px - var(--scrollbar-width)) 4px 12px;
.stable-scroll-container();
} }
} }
} }

View file

@ -14,9 +14,7 @@
.application.sheet.daggerheart.actor.dh-style.environment { .application.sheet.daggerheart.actor.dh-style.environment {
.tab { .tab {
flex: 1;
overflow-y: auto; overflow-y: auto;
&.active { &.active {
overflow: hidden; overflow: hidden;
display: flex; display: flex;

View file

@ -7,12 +7,8 @@
} }
.feature-section { .feature-section {
display: flex; padding: 16px calc(16px - var(--scrollbar-width)) 4px 16px;
flex-direction: column; .stable-scroll-container();
gap: 10px;
overflow-y: auto;
padding-bottom: 4px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -1,4 +1,4 @@
@import './sheet.less';
@import './header.less'; @import './header.less';
@import './party-members.less'; @import './party-members.less';
@import './sheet.less';
@import './inventory.less'; @import './inventory.less';

View file

@ -8,6 +8,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px; gap: 10px;
overflow-y: auto;
margin-top: 20px;
padding-bottom: 4px;
.with-scroll-shadows();
} }
} }
} }

View file

@ -2,10 +2,9 @@
@import '../../../utils/fonts.less'; @import '../../../utils/fonts.less';
@import '../../../utils/mixin.less'; @import '../../../utils/mixin.less';
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers.active { .application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
padding: var(--spacer-8) 4px 0 10px; padding: 12px calc(12px - var(--scrollbar-width)) 4px 12px;
scrollbar-gutter: stable; .stable-scroll-container();
.with-scroll-shadows();
.actions-section { .actions-section {
display: flex; display: flex;

View file

@ -18,9 +18,7 @@
.application.sheet.daggerheart.actor.dh-style.party { .application.sheet.daggerheart.actor.dh-style.party {
.tab.active { .tab.active {
overflow: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 1;
} }
} }

View file

@ -198,3 +198,9 @@
transparent 100% transparent 100%
); );
} }
.stable-scroll-container() {
overflow-y: auto;
scrollbar-gutter: stable;
.with-scroll-shadows();
}

View file

@ -1,6 +1,6 @@
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}' <section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
data-group='{{tabs.effects.group}}'> data-group='{{tabs.effects.group}}'>
<div class="effects-sections scroll-container"> <div class="effects-sections">
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='DAGGERHEART.GENERAL.activeEffects' title='DAGGERHEART.GENERAL.activeEffects'
type='effect' type='effect'

View file

@ -1,8 +1,6 @@
<section <section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}" data-group='{{tabs.features.group}}'>
data-tab="{{tabs.features.id}}" <div class="feature-section items-list">
data-group="{{tabs.features.group}}">
<div class="feature-section scroll-container">
{{#each @root.features as |item|}} {{#each @root.features as |item|}}
{{> "daggerheart.inventory-item" {{> "daggerheart.inventory-item"
item=item item=item

View file

@ -1,9 +1,9 @@
<section <section
class="tab {{tabs.biography.cssClass}} {{tabs.biography.id}}" class='tab {{tabs.biography.cssClass}} {{tabs.biography.id}}'
data-tab="{{tabs.biography.id}}" data-tab='{{tabs.biography.id}}'
data-group='{{tabs.biography.group}}' data-group='{{tabs.biography.group}}'
> >
<div class="items-section scroll-container"> <div class="items-section">
<div class="characteristics-section flexrow"> <div class="characteristics-section flexrow">
<div class="input"> <div class="input">
<span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span> <span>{{localize 'DAGGERHEART.ACTORS.Character.pronouns'}}</span>

View file

@ -1,7 +1,7 @@
<section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}' <section class='tab {{tabs.effects.cssClass}} {{tabs.effects.id}}' data-tab='{{tabs.effects.id}}'
data-group='{{tabs.effects.group}}'> data-group='{{tabs.effects.group}}'>
<div class="effects-sections scroll-container"> <div class="effects-sections">
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='DAGGERHEART.GENERAL.activeEffects' title='DAGGERHEART.GENERAL.activeEffects'
type='effect' type='effect'

View file

@ -1,23 +1,21 @@
<section <section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}" data-group='{{tabs.features.group}}'>
data-tab="{{tabs.features.id}}" <div class="features-sections">
data-group="{{tabs.features.group}}">
<div class="features-section scroll-container">
{{#each document.system.sheetLists as |category|}} {{#each document.system.sheetLists as |category|}}
{{#if (eq category.type "feature" )}} {{#if (eq category.type 'feature' )}}
{{> "daggerheart.inventory-items" {{> 'daggerheart.inventory-items'
title=category.title title=category.title
type="feature" type='feature'
actorType="character" actorType='character'
collection=category.values collection=category.values
canCreate=@root.editable canCreate=@root.editable
showActions=@root.editable showActions=@root.editable
}} }}
{{else if category.values}} {{else if category.values}}
{{> "daggerheart.inventory-items" {{> 'daggerheart.inventory-items'
title=category.title title=category.title
type="feature" type='feature'
actorType="character" actorType='character'
collection=category.values collection=category.values
canCreate=false canCreate=false
showActions=@root.editable showActions=@root.editable

View file

@ -16,7 +16,7 @@
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}} {{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
{{/if}} {{/if}}
<div class="items-section scroll-container"> <div class="items-section">
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='TYPES.Item.weapon' title='TYPES.Item.weapon'
type='weapon' type='weapon'

View file

@ -20,7 +20,7 @@
</button> </button>
</div> </div>
<div class="items-section scroll-container"> <div class="items-section">
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='DAGGERHEART.GENERAL.Tabs.loadout' title='DAGGERHEART.GENERAL.Tabs.loadout'
type='domainCard' type='domainCard'

View file

@ -1,9 +1,9 @@
<section <section
class="tab {{tabs.features.cssClass}} {{tabs.features.id}}" class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
data-tab="{{tabs.features.id}}" data-tab='{{tabs.features.id}}'
data-group="{{tabs.features.group}}" data-group='{{tabs.features.group}}'
> >
<div class="feature-section scroll-container"> <div class="feature-section items-list">
{{#each @root.features as |item|}} {{#each @root.features as |item|}}
{{> "daggerheart.inventory-item" {{> "daggerheart.inventory-item"
item=item item=item

View file

@ -3,7 +3,7 @@
data-tab='{{tabs.potentialAdversaries.id}}' data-tab='{{tabs.potentialAdversaries.id}}'
data-group='{{tabs.potentialAdversaries.group}}' data-group='{{tabs.potentialAdversaries.group}}'
> >
<div class="items-section scroll-container"> <div class="items-section">
{{#each document.system.potentialAdversaries as |category categoryId|}} {{#each document.system.potentialAdversaries as |category categoryId|}}
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title=category.label title=category.label

View file

@ -1,14 +1,15 @@
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}' <section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
data-group='{{tabs.features.group}}'> data-group='{{tabs.features.group}}'>
<div class="feature-section"> <div class="feature-section items-list">
{{> 'daggerheart.inventory-items' {{#each @root.features as |item|}}
title=tabs.features.label {{> "daggerheart.inventory-item"
type='feature' item=item
collection=@root.features type="feature"
hideContextMenu=true actorType=@root.document.type
hideModifyControls=true hideContextMenu=true
canCreate=@root.editable hideModifyControls=true
showActions=@root.editable showActions=@root.editable
}} }}
{{/each}}
</div> </div>
</section> </section>

View file

@ -19,7 +19,7 @@
{{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}} {{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
{{/if}} {{/if}}
<div class="items-section scroll-container"> <div class="items-section">
{{> 'daggerheart.inventory-items' {{> 'daggerheart.inventory-items'
title='TYPES.Item.weapon' title='TYPES.Item.weapon'
type='weapon' type='weapon'

View file

@ -158,7 +158,6 @@ Parameters:
</button> </button>
{{/if}} {{/if}}
{{#if action.uses.max}} {{#if action.uses.max}}
<div class="spacer"></div>
<button type="button" class="action-uses-button" data-action="increaseActionUses" data-item-uuid="{{action.uuid}}"> <button type="button" class="action-uses-button" data-action="increaseActionUses" data-item-uuid="{{action.uuid}}">
{{action.remainingUses}}/{{action.uses.max}} {{action.remainingUses}}/{{action.uses.max}}
</button> </button>