Fixed so that messages auto expand the description (#1650)

This commit is contained in:
WBHarry 2026-02-11 23:56:35 +01:00 committed by GitHub
parent fa19339868
commit 95d4003045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 7 deletions

View file

@ -262,6 +262,9 @@ export function ActionMixin(Base) {
}
async toChat(origin) {
const autoExpandDescription = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.appearance)
.expandRollMessage?.desc;
const cls = getDocumentClass('ChatMessage');
const systemData = {
title: game.i18n.localize('DAGGERHEART.CONFIG.FeatureForm.action'),
@ -290,7 +293,7 @@ export function ActionMixin(Base) {
system: systemData,
content: await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/ui/chat/action.hbs',
systemData
{ ...systemData, open: autoExpandDescription ? 'open' : '' }
),
flags: {
daggerheart: {