Minor fixes and tweaks for the party sheet (#1239)

* Minor fixes and tweaks for the party sheet

* Fix scroll restoration for party sheet tabs
This commit is contained in:
Carlos Fernandez 2025-11-04 11:13:44 -05:00 committed by GitHub
parent a3f079d111
commit 4f990166f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -46,15 +46,15 @@ export default class Party extends DHBaseActorSheet {
partyMembers: { template: 'systems/daggerheart/templates/sheets/actors/party/party-members.hbs' },
resources: {
template: 'systems/daggerheart/templates/sheets/actors/party/resources.hbs',
scrollable: ['.resources']
scrollable: ['']
},
projects: {
template: 'systems/daggerheart/templates/sheets/actors/party/projects.hbs',
scrollable: ['.projects']
scrollable: ['']
},
inventory: {
template: 'systems/daggerheart/templates/sheets/actors/party/inventory.hbs',
scrollable: ['.inventory']
scrollable: ['']
},
notes: { template: 'systems/daggerheart/templates/sheets/actors/party/notes.hbs' }
};

View file

@ -675,7 +675,6 @@ export default class DhCharacter extends BaseDataActor {
}
_getTags() {
const tags = [this.class.value.name, this.class.subclass.name, this.community.name, this.ancestry.name];
return tags;
return [this.class.value?.name, this.class.subclass?.name, this.community?.name, this.ancestry?.name].filter((t) => !!t);
}
}

View file

@ -92,6 +92,7 @@
&.actor-img {
border-radius: 50%;
object-position: top center;
}
}

View file

@ -53,6 +53,7 @@ body.game:is(.performance-low, .noblur) {
.actor-img {
height: 150px;
object-fit: cover;
object-position: top center;
border-radius: 6px 6px 0px 0px;
mask-image: linear-gradient(180deg, black 88%, transparent 100%);
}