Fixed so that the Appearance setting for auto expanding message sections works (#2104)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

This commit is contained in:
WBHarry 2026-07-22 14:17:27 +02:00 committed by GitHub
parent abe54cfc43
commit ffa7912d01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,10 +4,10 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
targetHook = null;
static #EXPAND_SECTIONS = [
{ selector: 'roll-section [data-action="expandRoll"]', key: 'roll' },
{ selector: 'damage-section', key: 'damage' },
{ selector: 'target-section', key: 'target' },
{ selector: 'description-section', key: 'desc' }
{ selector: '.roll-section [data-action="expandRoll"]', key: 'roll' },
{ selector: '.damage-section', key: 'damage' },
{ selector: '.target-section', key: 'target' },
{ selector: '.description-section', key: 'desc' }
];
async renderHTML() {