[Fix] TriggerConfig Expand/Collapse (#1630)

* Fixed so that the angle icon indicating expand/collapse for a trigger config actually flips when clicked

* Fixed styles
This commit is contained in:
WBHarry 2026-02-03 23:31:18 +01:00 committed by GitHub
parent c1924534da
commit c8d1ea1460
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -314,7 +314,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
const index = Number.parseInt(button.dataset.index);
const toggle = (element, codeMirror) => {
codeMirror.classList.toggle('revealed');
const button = element.querySelector('a > i');
const button = element.querySelector('.expand-trigger > i');
button.classList.toggle('fa-angle-up');
button.classList.toggle('fa-angle-down');
};