[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 index = Number.parseInt(button.dataset.index);
const toggle = (element, codeMirror) => { const toggle = (element, codeMirror) => {
codeMirror.classList.toggle('revealed'); 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-up');
button.classList.toggle('fa-angle-down'); button.classList.toggle('fa-angle-down');
}; };

View file

@ -58,6 +58,7 @@
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px;
select { select {
flex: 1; flex: 1;
@ -96,6 +97,7 @@
height: 0; height: 0;
min-height: 0; min-height: 0;
transition: height 0.1s ease-in-out; transition: height 0.1s ease-in-out;
overflow: hidden;
&.revealed { &.revealed {
height: 300px; height: 300px;